Generated_Members_J.cpp 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. // DO NOT EDIT. This file is generated
  2. #include "../Precompiled.h"
  3. #include "../AngelScript/APITemplates.h"
  4. #include "../AngelScript/GeneratedIncludes.h"
  5. #include "../AngelScript/Manual.h"
  6. namespace Urho3D
  7. {
  8. void FakeAddRef(void* ptr);
  9. void FakeReleaseRef(void* ptr);
  10. // explicit JSONFile::JSONFile(Context* context) | File: ../Resource/JSONFile.h
  11. static JSONFile* JSONFile_JSONFile_Context()
  12. {
  13. return new JSONFile(GetScriptContext());
  14. }
  15. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  16. static void JSONFile_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool(JSONFile* ptr, CScriptArray* exceptions_conv, bool onlyUserData)
  17. {
  18. PODVector<StringHash> exceptions = ArrayToPODVector<StringHash>(exceptions_conv);
  19. ptr->UnsubscribeFromAllEventsExcept(exceptions, onlyUserData);
  20. }
  21. // JSONValue::JSONValue(bool value) | File: ../Resource/JSONValue.h
  22. static void JSONValue_JSONValue_bool(JSONValue* ptr, bool value)
  23. {
  24. new(ptr) JSONValue(value);
  25. }
  26. // JSONValue::JSONValue(int value) | File: ../Resource/JSONValue.h
  27. static void JSONValue_JSONValue_int(JSONValue* ptr, int value)
  28. {
  29. new(ptr) JSONValue(value);
  30. }
  31. // JSONValue::JSONValue(unsigned value) | File: ../Resource/JSONValue.h
  32. static void JSONValue_JSONValue_unsigned(JSONValue* ptr, unsigned value)
  33. {
  34. new(ptr) JSONValue(value);
  35. }
  36. // JSONValue::JSONValue(float value) | File: ../Resource/JSONValue.h
  37. static void JSONValue_JSONValue_float(JSONValue* ptr, float value)
  38. {
  39. new(ptr) JSONValue(value);
  40. }
  41. // JSONValue::JSONValue(double value) | File: ../Resource/JSONValue.h
  42. static void JSONValue_JSONValue_double(JSONValue* ptr, double value)
  43. {
  44. new(ptr) JSONValue(value);
  45. }
  46. // JSONValue::JSONValue(const String& value) | File: ../Resource/JSONValue.h
  47. static void JSONValue_JSONValue_String(JSONValue* ptr, const String &value)
  48. {
  49. new(ptr) JSONValue(value);
  50. }
  51. // JSONValue::JSONValue(const JSONValue& value) | File: ../Resource/JSONValue.h
  52. static void JSONValue_JSONValue_JSONValue(JSONValue* ptr, const JSONValue &value)
  53. {
  54. new(ptr) JSONValue(value);
  55. }
  56. // void JSONValue::SetVariant(const Variant& variant, Context* context=nullptr) | File: ../Resource/JSONValue.h
  57. static void JSONValue_SetVariant_Variant_Context(JSONValue* ptr, const Variant& variant)
  58. {
  59. Context* context = GetScriptContext();
  60. ptr->SetVariant(variant, context);
  61. }
  62. // void JSONValue::SetVariantMap(const VariantMap& variantMap, Context* context=nullptr) | File: ../Resource/JSONValue.h
  63. static void JSONValue_SetVariantMap_VariantMap_Context(JSONValue* ptr, const VariantMap& variantMap)
  64. {
  65. Context* context = GetScriptContext();
  66. ptr->SetVariantMap(variantMap, context);
  67. }
  68. // void JSONValue::SetVariantValue(const Variant& variant, Context* context=nullptr) | File: ../Resource/JSONValue.h
  69. static void JSONValue_SetVariantValue_Variant_Context(JSONValue* ptr, const Variant& variant)
  70. {
  71. Context* context = GetScriptContext();
  72. ptr->SetVariantValue(variant, context);
  73. }
  74. void ASRegisterGenerated_Members_J(asIScriptEngine* engine)
  75. {
  76. // void RefCounted::AddRef() | File: ../Container/RefCounted.h
  77. engine->RegisterObjectBehaviour("JSONFile", asBEHAVE_ADDREF, "void f()", AS_METHODPR(JSONFile, AddRef, (), void), AS_CALL_THISCALL);
  78. // bool JSONFile::BeginLoad(Deserializer& source) override | File: ../Resource/JSONFile.h
  79. engine->RegisterObjectMethod("JSONFile", "bool BeginLoad(Deserializer&)", AS_METHODPR(JSONFile, BeginLoad, (Deserializer&), bool), AS_CALL_THISCALL);
  80. // template<typename T> T* Object::Cast() | File: ../Core/Object.h
  81. // Not registered because template
  82. // template<typename T> const T* Object::Cast() const | File: ../Core/Object.h
  83. // Not registered because template
  84. // virtual bool Resource::EndLoad() | File: ../Resource/Resource.h
  85. engine->RegisterObjectMethod("JSONFile", "bool EndLoad()", AS_METHODPR(JSONFile, EndLoad, (), bool), AS_CALL_THISCALL);
  86. // bool JSONFile::FromString(const String& source) | File: ../Resource/JSONFile.h
  87. engine->RegisterObjectMethod("JSONFile", "bool FromString(const String&in)", AS_METHODPR(JSONFile, FromString, (const String&), bool), AS_CALL_THISCALL);
  88. // AsyncLoadState Resource::GetAsyncLoadState() const | File: ../Resource/Resource.h
  89. engine->RegisterObjectMethod("JSONFile", "AsyncLoadState GetAsyncLoadState() const", AS_METHODPR(JSONFile, GetAsyncLoadState, () const, AsyncLoadState), AS_CALL_THISCALL);
  90. // bool Object::GetBlockEvents() const | File: ../Core/Object.h
  91. engine->RegisterObjectMethod("JSONFile", "bool GetBlockEvents() const", AS_METHODPR(JSONFile, GetBlockEvents, () const, bool), AS_CALL_THISCALL);
  92. // const String& Object::GetCategory() const | File: ../Core/Object.h
  93. engine->RegisterObjectMethod("JSONFile", "const String& GetCategory() const", AS_METHODPR(JSONFile, GetCategory, () const, const String&), AS_CALL_THISCALL);
  94. engine->RegisterObjectMethod("JSONFile", "const String& get_category() const", AS_METHODPR(JSONFile, GetCategory, () const, const String&), AS_CALL_THISCALL);
  95. // Context* Object::GetContext() const | File: ../Core/Object.h
  96. // Error: type "Context*" can used only as function parameter
  97. // VariantMap& Object::GetEventDataMap() const | File: ../Core/Object.h
  98. engine->RegisterObjectMethod("JSONFile", "VariantMap& GetEventDataMap() const", AS_METHODPR(JSONFile, GetEventDataMap, () const, VariantMap&), AS_CALL_THISCALL);
  99. // EventHandler* Object::GetEventHandler() const | File: ../Core/Object.h
  100. // Error: type "EventHandler*" can not automatically bind
  101. // Object* Object::GetEventSender() const | File: ../Core/Object.h
  102. engine->RegisterObjectMethod("JSONFile", "Object@+ GetEventSender() const", AS_METHODPR(JSONFile, GetEventSender, () const, Object*), AS_CALL_THISCALL);
  103. // const Variant& Object::GetGlobalVar(StringHash key) const | File: ../Core/Object.h
  104. engine->RegisterObjectMethod("JSONFile", "const Variant& GetGlobalVar(StringHash) const", AS_METHODPR(JSONFile, GetGlobalVar, (StringHash) const, const Variant&), AS_CALL_THISCALL);
  105. engine->RegisterObjectMethod("JSONFile", "const Variant& get_globalVar(StringHash) const", AS_METHODPR(JSONFile, GetGlobalVar, (StringHash) const, const Variant&), AS_CALL_THISCALL);
  106. // const VariantMap& Object::GetGlobalVars() const | File: ../Core/Object.h
  107. engine->RegisterObjectMethod("JSONFile", "const VariantMap& GetGlobalVars() const", AS_METHODPR(JSONFile, GetGlobalVars, () const, const VariantMap&), AS_CALL_THISCALL);
  108. engine->RegisterObjectMethod("JSONFile", "const VariantMap& get_globalVars() const", AS_METHODPR(JSONFile, GetGlobalVars, () const, const VariantMap&), AS_CALL_THISCALL);
  109. // unsigned Resource::GetMemoryUse() const | File: ../Resource/Resource.h
  110. engine->RegisterObjectMethod("JSONFile", "uint GetMemoryUse() const", AS_METHODPR(JSONFile, GetMemoryUse, () const, unsigned), AS_CALL_THISCALL);
  111. engine->RegisterObjectMethod("JSONFile", "uint get_memoryUse() const", AS_METHODPR(JSONFile, GetMemoryUse, () const, unsigned), AS_CALL_THISCALL);
  112. // const String& Resource::GetName() const | File: ../Resource/Resource.h
  113. engine->RegisterObjectMethod("JSONFile", "const String& GetName() const", AS_METHODPR(JSONFile, GetName, () const, const String&), AS_CALL_THISCALL);
  114. engine->RegisterObjectMethod("JSONFile", "const String& get_name() const", AS_METHODPR(JSONFile, GetName, () const, const String&), AS_CALL_THISCALL);
  115. // StringHash Resource::GetNameHash() const | File: ../Resource/Resource.h
  116. engine->RegisterObjectMethod("JSONFile", "StringHash GetNameHash() const", AS_METHODPR(JSONFile, GetNameHash, () const, StringHash), AS_CALL_THISCALL);
  117. // JSONValue& JSONFile::GetRoot() | File: ../Resource/JSONFile.h
  118. engine->RegisterObjectMethod("JSONFile", "JSONValue& GetRoot()", AS_METHODPR(JSONFile, GetRoot, (), JSONValue&), AS_CALL_THISCALL);
  119. engine->RegisterObjectMethod("JSONFile", "JSONValue& get_root()", AS_METHODPR(JSONFile, GetRoot, (), JSONValue&), AS_CALL_THISCALL);
  120. // const JSONValue& JSONFile::GetRoot() const | File: ../Resource/JSONFile.h
  121. engine->RegisterObjectMethod("JSONFile", "const JSONValue& GetRoot() const", AS_METHODPR(JSONFile, GetRoot, () const, const JSONValue&), AS_CALL_THISCALL);
  122. // Object* Object::GetSubsystem(StringHash type) const | File: ../Core/Object.h
  123. engine->RegisterObjectMethod("JSONFile", "Object@+ GetSubsystem(StringHash) const", AS_METHODPR(JSONFile, GetSubsystem, (StringHash) const, Object*), AS_CALL_THISCALL);
  124. // template<class T> T* Object::GetSubsystem() const | File: ../Core/Object.h
  125. // Not registered because template
  126. // virtual StringHash Object::GetType() const =0 | File: ../Core/Object.h
  127. engine->RegisterObjectMethod("JSONFile", "StringHash GetType() const", AS_METHODPR(JSONFile, GetType, () const, StringHash), AS_CALL_THISCALL);
  128. engine->RegisterObjectMethod("JSONFile", "StringHash get_type() const", AS_METHODPR(JSONFile, GetType, () const, StringHash), AS_CALL_THISCALL);
  129. // virtual const TypeInfo* Object::GetTypeInfo() const =0 | File: ../Core/Object.h
  130. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  131. // static const TypeInfo* Object::GetTypeInfoStatic() | File: ../Core/Object.h
  132. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  133. // virtual const String& Object::GetTypeName() const =0 | File: ../Core/Object.h
  134. engine->RegisterObjectMethod("JSONFile", "const String& GetTypeName() const", AS_METHODPR(JSONFile, GetTypeName, () const, const String&), AS_CALL_THISCALL);
  135. engine->RegisterObjectMethod("JSONFile", "const String& get_typeName() const", AS_METHODPR(JSONFile, GetTypeName, () const, const String&), AS_CALL_THISCALL);
  136. // unsigned Resource::GetUseTimer() | File: ../Resource/Resource.h
  137. engine->RegisterObjectMethod("JSONFile", "uint GetUseTimer()", AS_METHODPR(JSONFile, GetUseTimer, (), unsigned), AS_CALL_THISCALL);
  138. engine->RegisterObjectMethod("JSONFile", "uint get_useTimer()", AS_METHODPR(JSONFile, GetUseTimer, (), unsigned), AS_CALL_THISCALL);
  139. // bool Object::HasEventHandlers() const | File: ../Core/Object.h
  140. engine->RegisterObjectMethod("JSONFile", "bool HasEventHandlers() const", AS_METHODPR(JSONFile, HasEventHandlers, () const, bool), AS_CALL_THISCALL);
  141. // bool Object::HasSubscribedToEvent(StringHash eventType) const | File: ../Core/Object.h
  142. engine->RegisterObjectMethod("JSONFile", "bool HasSubscribedToEvent(StringHash) const", AS_METHODPR(JSONFile, HasSubscribedToEvent, (StringHash) const, bool), AS_CALL_THISCALL);
  143. // bool Object::HasSubscribedToEvent(Object* sender, StringHash eventType) const | File: ../Core/Object.h
  144. engine->RegisterObjectMethod("JSONFile", "bool HasSubscribedToEvent(Object@+, StringHash) const", AS_METHODPR(JSONFile, HasSubscribedToEvent, (Object*, StringHash) const, bool), AS_CALL_THISCALL);
  145. // bool Object::IsInstanceOf(StringHash type) const | File: ../Core/Object.h
  146. engine->RegisterObjectMethod("JSONFile", "bool IsInstanceOf(StringHash) const", AS_METHODPR(JSONFile, IsInstanceOf, (StringHash) const, bool), AS_CALL_THISCALL);
  147. // bool Object::IsInstanceOf(const TypeInfo* typeInfo) const | File: ../Core/Object.h
  148. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  149. // template<typename T> bool Object::IsInstanceOf() const | File: ../Core/Object.h
  150. // Not registered because template
  151. // explicit JSONFile::JSONFile(Context* context) | File: ../Resource/JSONFile.h
  152. engine->RegisterObjectBehaviour("JSONFile", asBEHAVE_FACTORY, "JSONFile@+ f()", AS_FUNCTION(JSONFile_JSONFile_Context), AS_CALL_CDECL);
  153. // bool Resource::Load(Deserializer& source) | File: ../Resource/Resource.h
  154. engine->RegisterObjectMethod("JSONFile", "bool Load(Deserializer&)", AS_METHODPR(JSONFile, Load, (Deserializer&), bool), AS_CALL_THISCALL);
  155. // bool Resource::LoadFile(const String& fileName) | File: ../Resource/Resource.h
  156. engine->RegisterObjectMethod("JSONFile", "bool LoadFile(const String&in)", AS_METHODPR(JSONFile, LoadFile, (const String&), bool), AS_CALL_THISCALL);
  157. engine->RegisterObjectMethod("JSONFile", "bool Load(const String&in)", AS_METHODPR(JSONFile, LoadFile, (const String&), bool), AS_CALL_THISCALL);
  158. // virtual void Object::OnEvent(Object* sender, StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  159. engine->RegisterObjectMethod("JSONFile", "void OnEvent(Object@+, StringHash, VariantMap&)", AS_METHODPR(JSONFile, OnEvent, (Object*, StringHash, VariantMap&), void), AS_CALL_THISCALL);
  160. // RefCount* RefCounted::RefCountPtr() | File: ../Container/RefCounted.h
  161. // Error: type "RefCount*" can not automatically bind
  162. // int RefCounted::Refs() const | File: ../Container/RefCounted.h
  163. engine->RegisterObjectMethod("JSONFile", "int Refs() const", AS_METHODPR(JSONFile, Refs, () const, int), AS_CALL_THISCALL);
  164. engine->RegisterObjectMethod("JSONFile", "int get_refs() const", AS_METHODPR(JSONFile, Refs, () const, int), AS_CALL_THISCALL);
  165. // static void JSONFile::RegisterObject(Context* context) | File: ../Resource/JSONFile.h
  166. // Not registered because have @nobind mark
  167. // void RefCounted::ReleaseRef() | File: ../Container/RefCounted.h
  168. engine->RegisterObjectBehaviour("JSONFile", asBEHAVE_RELEASE, "void f()", AS_METHODPR(JSONFile, ReleaseRef, (), void), AS_CALL_THISCALL);
  169. // void Resource::ResetUseTimer() | File: ../Resource/Resource.h
  170. engine->RegisterObjectMethod("JSONFile", "void ResetUseTimer()", AS_METHODPR(JSONFile, ResetUseTimer, (), void), AS_CALL_THISCALL);
  171. // bool JSONFile::Save(Serializer& dest) const override | File: ../Resource/JSONFile.h
  172. engine->RegisterObjectMethod("JSONFile", "bool Save(Serializer&) const", AS_METHODPR(JSONFile, Save, (Serializer&) const, bool), AS_CALL_THISCALL);
  173. // bool JSONFile::Save(Serializer& dest, const String& indendation) const | File: ../Resource/JSONFile.h
  174. engine->RegisterObjectMethod("JSONFile", "bool Save(Serializer&, const String&in) const", AS_METHODPR(JSONFile, Save, (Serializer&, const String&) const, bool), AS_CALL_THISCALL);
  175. // virtual bool Resource::SaveFile(const String& fileName) const | File: ../Resource/Resource.h
  176. engine->RegisterObjectMethod("JSONFile", "bool SaveFile(const String&in) const", AS_METHODPR(JSONFile, SaveFile, (const String&) const, bool), AS_CALL_THISCALL);
  177. engine->RegisterObjectMethod("JSONFile", "bool Save(const String&in) const", AS_METHODPR(JSONFile, SaveFile, (const String&) const, bool), AS_CALL_THISCALL);
  178. // void Object::SendEvent(StringHash eventType) | File: ../Core/Object.h
  179. engine->RegisterObjectMethod("JSONFile", "void SendEvent(StringHash)", AS_METHODPR(JSONFile, SendEvent, (StringHash), void), AS_CALL_THISCALL);
  180. // void Object::SendEvent(StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  181. engine->RegisterObjectMethod("JSONFile", "void SendEvent(StringHash, VariantMap&)", AS_METHODPR(JSONFile, SendEvent, (StringHash, VariantMap&), void), AS_CALL_THISCALL);
  182. // template<typename... Args> void Object::SendEvent(StringHash eventType, Args... args) | File: ../Core/Object.h
  183. // Not registered because template
  184. // void Resource::SetAsyncLoadState(AsyncLoadState newState) | File: ../Resource/Resource.h
  185. engine->RegisterObjectMethod("JSONFile", "void SetAsyncLoadState(AsyncLoadState)", AS_METHODPR(JSONFile, SetAsyncLoadState, (AsyncLoadState), void), AS_CALL_THISCALL);
  186. // void Object::SetBlockEvents(bool block) | File: ../Core/Object.h
  187. engine->RegisterObjectMethod("JSONFile", "void SetBlockEvents(bool)", AS_METHODPR(JSONFile, SetBlockEvents, (bool), void), AS_CALL_THISCALL);
  188. // void Object::SetGlobalVar(StringHash key, const Variant& value) | File: ../Core/Object.h
  189. engine->RegisterObjectMethod("JSONFile", "void SetGlobalVar(StringHash, const Variant&in)", AS_METHODPR(JSONFile, SetGlobalVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  190. engine->RegisterObjectMethod("JSONFile", "void set_globalVar(StringHash, const Variant&in)", AS_METHODPR(JSONFile, SetGlobalVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  191. // void Resource::SetMemoryUse(unsigned size) | File: ../Resource/Resource.h
  192. engine->RegisterObjectMethod("JSONFile", "void SetMemoryUse(uint)", AS_METHODPR(JSONFile, SetMemoryUse, (unsigned), void), AS_CALL_THISCALL);
  193. // void Resource::SetName(const String& name) | File: ../Resource/Resource.h
  194. engine->RegisterObjectMethod("JSONFile", "void SetName(const String&in)", AS_METHODPR(JSONFile, SetName, (const String&), void), AS_CALL_THISCALL);
  195. engine->RegisterObjectMethod("JSONFile", "void set_name(const String&in)", AS_METHODPR(JSONFile, SetName, (const String&), void), AS_CALL_THISCALL);
  196. // void Object::SubscribeToEvent(StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  197. // Error: type "EventHandler*" can not automatically bind
  198. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  199. // Error: type "EventHandler*" can not automatically bind
  200. // void Object::SubscribeToEvent(StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  201. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  202. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  203. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  204. // String JSONFile::ToString(const String& indendation="\t") const | File: ../Resource/JSONFile.h
  205. engine->RegisterObjectMethod("JSONFile", "String ToString(const String&in = \"\t\") const", AS_METHODPR(JSONFile, ToString, (const String&) const, String), AS_CALL_THISCALL);
  206. // void Object::UnsubscribeFromAllEvents() | File: ../Core/Object.h
  207. engine->RegisterObjectMethod("JSONFile", "void UnsubscribeFromAllEvents()", AS_METHODPR(JSONFile, UnsubscribeFromAllEvents, (), void), AS_CALL_THISCALL);
  208. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  209. engine->RegisterObjectMethod("JSONFile", "void UnsubscribeFromAllEventsExcept(Array<StringHash>@+, bool)", AS_FUNCTION_OBJFIRST(JSONFile_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool), AS_CALL_CDECL_OBJFIRST);
  210. // void Object::UnsubscribeFromEvent(StringHash eventType) | File: ../Core/Object.h
  211. engine->RegisterObjectMethod("JSONFile", "void UnsubscribeFromEvent(StringHash)", AS_METHODPR(JSONFile, UnsubscribeFromEvent, (StringHash), void), AS_CALL_THISCALL);
  212. // void Object::UnsubscribeFromEvent(Object* sender, StringHash eventType) | File: ../Core/Object.h
  213. engine->RegisterObjectMethod("JSONFile", "void UnsubscribeFromEvent(Object@+, StringHash)", AS_METHODPR(JSONFile, UnsubscribeFromEvent, (Object*, StringHash), void), AS_CALL_THISCALL);
  214. // void Object::UnsubscribeFromEvents(Object* sender) | File: ../Core/Object.h
  215. engine->RegisterObjectMethod("JSONFile", "void UnsubscribeFromEvents(Object@+)", AS_METHODPR(JSONFile, UnsubscribeFromEvents, (Object*), void), AS_CALL_THISCALL);
  216. // int RefCounted::WeakRefs() const | File: ../Container/RefCounted.h
  217. engine->RegisterObjectMethod("JSONFile", "int WeakRefs() const", AS_METHODPR(JSONFile, WeakRefs, () const, int), AS_CALL_THISCALL);
  218. engine->RegisterObjectMethod("JSONFile", "int get_weakRefs() const", AS_METHODPR(JSONFile, WeakRefs, () const, int), AS_CALL_THISCALL);
  219. #ifdef REGISTER_MANUAL_PART_Resource
  220. REGISTER_MANUAL_PART_Resource(JSONFile, "JSONFile")
  221. #endif
  222. #ifdef REGISTER_MANUAL_PART_Object
  223. REGISTER_MANUAL_PART_Object(JSONFile, "JSONFile")
  224. #endif
  225. #ifdef REGISTER_MANUAL_PART_RefCounted
  226. REGISTER_MANUAL_PART_RefCounted(JSONFile, "JSONFile")
  227. #endif
  228. #ifdef REGISTER_MANUAL_PART_JSONFile
  229. REGISTER_MANUAL_PART_JSONFile(JSONFile, "JSONFile")
  230. #endif
  231. RegisterSubclass<Resource, JSONFile>(engine, "Resource", "JSONFile");
  232. RegisterSubclass<Object, JSONFile>(engine, "Object", "JSONFile");
  233. RegisterSubclass<RefCounted, JSONFile>(engine, "RefCounted", "JSONFile");
  234. // JSONArray* JSONValue::arrayValue_ | File: ../Resource/JSONValue.h
  235. // Not registered because have @nobind mark
  236. // bool JSONValue::boolValue_ | File: ../Resource/JSONValue.h
  237. // Not registered because have @nobind mark
  238. // const JSONValue JSONValue::EMPTY | File: ../Resource/JSONValue.h
  239. engine->SetDefaultNamespace("JSONValue");
  240. engine->RegisterGlobalProperty("const JSONValue EMPTY", (void*)&JSONValue::EMPTY);
  241. engine->SetDefaultNamespace("");
  242. // const JSONArray JSONValue::emptyArray | File: ../Resource/JSONValue.h
  243. // Error: type "const JSONArray" can not automatically bind
  244. // const JSONObject JSONValue::emptyObject | File: ../Resource/JSONValue.h
  245. // Error: type "const JSONObject" can not automatically bind
  246. // double JSONValue::numberValue_ | File: ../Resource/JSONValue.h
  247. // Not registered because have @nobind mark
  248. // JSONObject* JSONValue::objectValue_ | File: ../Resource/JSONValue.h
  249. // Not registered because have @nobind mark
  250. // String* JSONValue::stringValue_ | File: ../Resource/JSONValue.h
  251. // Not registered because have @nobind mark
  252. // JSONObjectIterator JSONValue::Begin() | File: ../Resource/JSONValue.h
  253. // Error: type "JSONObjectIterator" can not automatically bind
  254. // ConstJSONObjectIterator JSONValue::Begin() const | File: ../Resource/JSONValue.h
  255. // Error: type "ConstJSONObjectIterator" can not automatically bind
  256. // void JSONValue::Clear() | File: ../Resource/JSONValue.h
  257. engine->RegisterObjectMethod("JSONValue", "void Clear()", AS_METHODPR(JSONValue, Clear, (), void), AS_CALL_THISCALL);
  258. // bool JSONValue::Contains(const String& key) const | File: ../Resource/JSONValue.h
  259. engine->RegisterObjectMethod("JSONValue", "bool Contains(const String&in) const", AS_METHODPR(JSONValue, Contains, (const String&) const, bool), AS_CALL_THISCALL);
  260. // JSONObjectIterator JSONValue::End() | File: ../Resource/JSONValue.h
  261. // Error: type "JSONObjectIterator" can not automatically bind
  262. // ConstJSONObjectIterator JSONValue::End() const | File: ../Resource/JSONValue.h
  263. // Error: type "ConstJSONObjectIterator" can not automatically bind
  264. // void JSONValue::Erase(unsigned pos, unsigned length=1) | File: ../Resource/JSONValue.h
  265. engine->RegisterObjectMethod("JSONValue", "void Erase(uint, uint = 1)", AS_METHODPR(JSONValue, Erase, (unsigned, unsigned), void), AS_CALL_THISCALL);
  266. // bool JSONValue::Erase(const String& key) | File: ../Resource/JSONValue.h
  267. engine->RegisterObjectMethod("JSONValue", "bool Erase(const String&in)", AS_METHODPR(JSONValue, Erase, (const String&), bool), AS_CALL_THISCALL);
  268. // const JSONValue& JSONValue::Get(const String& key) const | File: ../Resource/JSONValue.h
  269. engine->RegisterObjectMethod("JSONValue", "const JSONValue& Get(const String&in) const", AS_METHODPR(JSONValue, Get, (const String&) const, const JSONValue&), AS_CALL_THISCALL);
  270. // const JSONArray& JSONValue::GetArray() const | File: ../Resource/JSONValue.h
  271. // Error: type "const JSONArray&" can not automatically bind
  272. // bool JSONValue::GetBool(bool defaultValue=false) const | File: ../Resource/JSONValue.h
  273. engine->RegisterObjectMethod("JSONValue", "bool GetBool(bool = false) const", AS_METHODPR(JSONValue, GetBool, (bool) const, bool), AS_CALL_THISCALL);
  274. // const char* JSONValue::GetCString(const char* defaultValue="") const | File: ../Resource/JSONValue.h
  275. // Error: type "const char*" can not automatically bind
  276. // double JSONValue::GetDouble(double defaultValue=0.0) const | File: ../Resource/JSONValue.h
  277. engine->RegisterObjectMethod("JSONValue", "double GetDouble(double = 0.0) const", AS_METHODPR(JSONValue, GetDouble, (double) const, double), AS_CALL_THISCALL);
  278. // float JSONValue::GetFloat(float defaultValue=0.0f) const | File: ../Resource/JSONValue.h
  279. engine->RegisterObjectMethod("JSONValue", "float GetFloat(float = 0.0f) const", AS_METHODPR(JSONValue, GetFloat, (float) const, float), AS_CALL_THISCALL);
  280. // int JSONValue::GetInt(int defaultValue=0) const | File: ../Resource/JSONValue.h
  281. engine->RegisterObjectMethod("JSONValue", "int GetInt(int = 0) const", AS_METHODPR(JSONValue, GetInt, (int) const, int), AS_CALL_THISCALL);
  282. // JSONNumberType JSONValue::GetNumberType() const | File: ../Resource/JSONValue.h
  283. engine->RegisterObjectMethod("JSONValue", "JSONNumberType GetNumberType() const", AS_METHODPR(JSONValue, GetNumberType, () const, JSONNumberType), AS_CALL_THISCALL);
  284. engine->RegisterObjectMethod("JSONValue", "JSONNumberType get_numberType() const", AS_METHODPR(JSONValue, GetNumberType, () const, JSONNumberType), AS_CALL_THISCALL);
  285. // static JSONNumberType JSONValue::GetNumberTypeFromName(const String& typeName) | File: ../Resource/JSONValue.h
  286. engine->SetDefaultNamespace("JSONValue");
  287. engine->RegisterGlobalFunction("JSONNumberType GetNumberTypeFromName(const String&in)", AS_FUNCTIONPR(JSONValue::GetNumberTypeFromName, (const String&), JSONNumberType), AS_CALL_CDECL);
  288. engine->SetDefaultNamespace("");
  289. // static JSONNumberType JSONValue::GetNumberTypeFromName(const char* typeName) | File: ../Resource/JSONValue.h
  290. // Error: type "const char*" can not automatically bind
  291. // String JSONValue::GetNumberTypeName() const | File: ../Resource/JSONValue.h
  292. engine->RegisterObjectMethod("JSONValue", "String GetNumberTypeName() const", AS_METHODPR(JSONValue, GetNumberTypeName, () const, String), AS_CALL_THISCALL);
  293. engine->RegisterObjectMethod("JSONValue", "String get_numberTypeName() const", AS_METHODPR(JSONValue, GetNumberTypeName, () const, String), AS_CALL_THISCALL);
  294. // static String JSONValue::GetNumberTypeName(JSONNumberType type) | File: ../Resource/JSONValue.h
  295. engine->SetDefaultNamespace("JSONValue");
  296. engine->RegisterGlobalFunction("String GetNumberTypeName(JSONNumberType)", AS_FUNCTIONPR(JSONValue::GetNumberTypeName, (JSONNumberType), String), AS_CALL_CDECL);
  297. engine->SetDefaultNamespace("");
  298. // const JSONObject& JSONValue::GetObject() const | File: ../Resource/JSONValue.h
  299. // Error: type "const JSONObject&" can not automatically bind
  300. // const String& JSONValue::GetString(const String& defaultValue=String::EMPTY) const | File: ../Resource/JSONValue.h
  301. engine->RegisterObjectMethod("JSONValue", "const String& GetString(const String&in = String::EMPTY) const", AS_METHODPR(JSONValue, GetString, (const String&) const, const String&), AS_CALL_THISCALL);
  302. // unsigned JSONValue::GetUInt(unsigned defaultValue=0) const | File: ../Resource/JSONValue.h
  303. engine->RegisterObjectMethod("JSONValue", "uint GetUInt(uint = 0) const", AS_METHODPR(JSONValue, GetUInt, (unsigned) const, unsigned), AS_CALL_THISCALL);
  304. // JSONValueType JSONValue::GetValueType() const | File: ../Resource/JSONValue.h
  305. engine->RegisterObjectMethod("JSONValue", "JSONValueType GetValueType() const", AS_METHODPR(JSONValue, GetValueType, () const, JSONValueType), AS_CALL_THISCALL);
  306. engine->RegisterObjectMethod("JSONValue", "JSONValueType get_valueType() const", AS_METHODPR(JSONValue, GetValueType, () const, JSONValueType), AS_CALL_THISCALL);
  307. // static JSONValueType JSONValue::GetValueTypeFromName(const String& typeName) | File: ../Resource/JSONValue.h
  308. engine->SetDefaultNamespace("JSONValue");
  309. engine->RegisterGlobalFunction("JSONValueType GetValueTypeFromName(const String&in)", AS_FUNCTIONPR(JSONValue::GetValueTypeFromName, (const String&), JSONValueType), AS_CALL_CDECL);
  310. engine->SetDefaultNamespace("");
  311. // static JSONValueType JSONValue::GetValueTypeFromName(const char* typeName) | File: ../Resource/JSONValue.h
  312. // Error: type "const char*" can not automatically bind
  313. // String JSONValue::GetValueTypeName() const | File: ../Resource/JSONValue.h
  314. engine->RegisterObjectMethod("JSONValue", "String GetValueTypeName() const", AS_METHODPR(JSONValue, GetValueTypeName, () const, String), AS_CALL_THISCALL);
  315. engine->RegisterObjectMethod("JSONValue", "String get_valueTypeName() const", AS_METHODPR(JSONValue, GetValueTypeName, () const, String), AS_CALL_THISCALL);
  316. // static String JSONValue::GetValueTypeName(JSONValueType type) | File: ../Resource/JSONValue.h
  317. engine->SetDefaultNamespace("JSONValue");
  318. engine->RegisterGlobalFunction("String GetValueTypeName(JSONValueType)", AS_FUNCTIONPR(JSONValue::GetValueTypeName, (JSONValueType), String), AS_CALL_CDECL);
  319. engine->SetDefaultNamespace("");
  320. // Variant JSONValue::GetVariant() const | File: ../Resource/JSONValue.h
  321. engine->RegisterObjectMethod("JSONValue", "Variant GetVariant() const", AS_METHODPR(JSONValue, GetVariant, () const, Variant), AS_CALL_THISCALL);
  322. // VariantMap JSONValue::GetVariantMap() const | File: ../Resource/JSONValue.h
  323. engine->RegisterObjectMethod("JSONValue", "VariantMap GetVariantMap() const", AS_METHODPR(JSONValue, GetVariantMap, () const, VariantMap), AS_CALL_THISCALL);
  324. // Variant JSONValue::GetVariantValue(VariantType type) const | File: ../Resource/JSONValue.h
  325. engine->RegisterObjectMethod("JSONValue", "Variant GetVariantValue(VariantType) const", AS_METHODPR(JSONValue, GetVariantValue, (VariantType) const, Variant), AS_CALL_THISCALL);
  326. // VariantVector JSONValue::GetVariantVector() const | File: ../Resource/JSONValue.h
  327. // Error: type "VariantVector" can not automatically bind
  328. // void JSONValue::Insert(unsigned pos, const JSONValue& value) | File: ../Resource/JSONValue.h
  329. engine->RegisterObjectMethod("JSONValue", "void Insert(uint, const JSONValue&in)", AS_METHODPR(JSONValue, Insert, (unsigned, const JSONValue&), void), AS_CALL_THISCALL);
  330. // bool JSONValue::IsArray() const | File: ../Resource/JSONValue.h
  331. engine->RegisterObjectMethod("JSONValue", "bool IsArray() const", AS_METHODPR(JSONValue, IsArray, () const, bool), AS_CALL_THISCALL);
  332. engine->RegisterObjectMethod("JSONValue", "bool get_isArray() const", AS_METHODPR(JSONValue, IsArray, () const, bool), AS_CALL_THISCALL);
  333. // bool JSONValue::IsBool() const | File: ../Resource/JSONValue.h
  334. engine->RegisterObjectMethod("JSONValue", "bool IsBool() const", AS_METHODPR(JSONValue, IsBool, () const, bool), AS_CALL_THISCALL);
  335. engine->RegisterObjectMethod("JSONValue", "bool get_isBool() const", AS_METHODPR(JSONValue, IsBool, () const, bool), AS_CALL_THISCALL);
  336. // bool JSONValue::IsNull() const | File: ../Resource/JSONValue.h
  337. engine->RegisterObjectMethod("JSONValue", "bool IsNull() const", AS_METHODPR(JSONValue, IsNull, () const, bool), AS_CALL_THISCALL);
  338. engine->RegisterObjectMethod("JSONValue", "bool get_isNull() const", AS_METHODPR(JSONValue, IsNull, () const, bool), AS_CALL_THISCALL);
  339. // bool JSONValue::IsNumber() const | File: ../Resource/JSONValue.h
  340. engine->RegisterObjectMethod("JSONValue", "bool IsNumber() const", AS_METHODPR(JSONValue, IsNumber, () const, bool), AS_CALL_THISCALL);
  341. engine->RegisterObjectMethod("JSONValue", "bool get_isNumber() const", AS_METHODPR(JSONValue, IsNumber, () const, bool), AS_CALL_THISCALL);
  342. // bool JSONValue::IsObject() const | File: ../Resource/JSONValue.h
  343. engine->RegisterObjectMethod("JSONValue", "bool IsObject() const", AS_METHODPR(JSONValue, IsObject, () const, bool), AS_CALL_THISCALL);
  344. engine->RegisterObjectMethod("JSONValue", "bool get_isObject() const", AS_METHODPR(JSONValue, IsObject, () const, bool), AS_CALL_THISCALL);
  345. // bool JSONValue::IsString() const | File: ../Resource/JSONValue.h
  346. engine->RegisterObjectMethod("JSONValue", "bool IsString() const", AS_METHODPR(JSONValue, IsString, () const, bool), AS_CALL_THISCALL);
  347. engine->RegisterObjectMethod("JSONValue", "bool get_isString() const", AS_METHODPR(JSONValue, IsString, () const, bool), AS_CALL_THISCALL);
  348. // JSONValue::JSONValue(bool value) | File: ../Resource/JSONValue.h
  349. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(bool)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_bool), AS_CALL_CDECL_OBJFIRST);
  350. // JSONValue::JSONValue(int value) | File: ../Resource/JSONValue.h
  351. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(int)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_int), AS_CALL_CDECL_OBJFIRST);
  352. // JSONValue::JSONValue(unsigned value) | File: ../Resource/JSONValue.h
  353. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(uint)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_unsigned), AS_CALL_CDECL_OBJFIRST);
  354. // JSONValue::JSONValue(float value) | File: ../Resource/JSONValue.h
  355. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(float)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_float), AS_CALL_CDECL_OBJFIRST);
  356. // JSONValue::JSONValue(double value) | File: ../Resource/JSONValue.h
  357. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(double)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_double), AS_CALL_CDECL_OBJFIRST);
  358. // JSONValue::JSONValue(const String& value) | File: ../Resource/JSONValue.h
  359. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(const String&in)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_String), AS_CALL_CDECL_OBJFIRST);
  360. // JSONValue::JSONValue(const char* value) | File: ../Resource/JSONValue.h
  361. // Error: type "const char*" can not automatically bind
  362. // JSONValue::JSONValue(const JSONArray& value) | File: ../Resource/JSONValue.h
  363. // Error: type "const JSONArray&" can not automatically bind
  364. // JSONValue::JSONValue(const JSONObject& value) | File: ../Resource/JSONValue.h
  365. // Error: type "const JSONObject&" can not automatically bind
  366. // JSONValue::JSONValue(const JSONValue& value) | File: ../Resource/JSONValue.h
  367. engine->RegisterObjectBehaviour("JSONValue", asBEHAVE_CONSTRUCT, "void f(const JSONValue&in)", AS_FUNCTION_OBJFIRST(JSONValue_JSONValue_JSONValue), AS_CALL_CDECL_OBJFIRST);
  368. // JSONValue& JSONValue::operator=(bool rhs) | File: ../Resource/JSONValue.h
  369. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(bool)", AS_METHODPR(JSONValue, operator=, (bool), JSONValue&), AS_CALL_THISCALL);
  370. // JSONValue& JSONValue::operator=(int rhs) | File: ../Resource/JSONValue.h
  371. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(int)", AS_METHODPR(JSONValue, operator=, (int), JSONValue&), AS_CALL_THISCALL);
  372. // JSONValue& JSONValue::operator=(unsigned rhs) | File: ../Resource/JSONValue.h
  373. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(uint)", AS_METHODPR(JSONValue, operator=, (unsigned), JSONValue&), AS_CALL_THISCALL);
  374. // JSONValue& JSONValue::operator=(float rhs) | File: ../Resource/JSONValue.h
  375. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(float)", AS_METHODPR(JSONValue, operator=, (float), JSONValue&), AS_CALL_THISCALL);
  376. // JSONValue& JSONValue::operator=(double rhs) | File: ../Resource/JSONValue.h
  377. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(double)", AS_METHODPR(JSONValue, operator=, (double), JSONValue&), AS_CALL_THISCALL);
  378. // JSONValue& JSONValue::operator=(const String& rhs) | File: ../Resource/JSONValue.h
  379. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(const String&in)", AS_METHODPR(JSONValue, operator=, (const String&), JSONValue&), AS_CALL_THISCALL);
  380. // JSONValue& JSONValue::operator=(const char* rhs) | File: ../Resource/JSONValue.h
  381. // Error: type "const char*" can not automatically bind
  382. // JSONValue& JSONValue::operator=(const JSONArray& rhs) | File: ../Resource/JSONValue.h
  383. // Error: type "const JSONArray&" can not automatically bind
  384. // JSONValue& JSONValue::operator=(const JSONObject& rhs) | File: ../Resource/JSONValue.h
  385. // Error: type "const JSONObject&" can not automatically bind
  386. // JSONValue& JSONValue::operator=(const JSONValue& rhs) | File: ../Resource/JSONValue.h
  387. engine->RegisterObjectMethod("JSONValue", "JSONValue& opAssign(const JSONValue&in)", AS_METHODPR(JSONValue, operator=, (const JSONValue&), JSONValue&), AS_CALL_THISCALL);
  388. // JSONValue& JSONValue::operator[](unsigned index) | File: ../Resource/JSONValue.h
  389. engine->RegisterObjectMethod("JSONValue", "JSONValue& opIndex(uint)", AS_METHODPR(JSONValue, operator[], (unsigned), JSONValue&), AS_CALL_THISCALL);
  390. // const JSONValue& JSONValue::operator[](unsigned index) const | File: ../Resource/JSONValue.h
  391. engine->RegisterObjectMethod("JSONValue", "const JSONValue& opIndex(uint) const", AS_METHODPR(JSONValue, operator[], (unsigned) const, const JSONValue&), AS_CALL_THISCALL);
  392. // JSONValue& JSONValue::operator[](const String& key) | File: ../Resource/JSONValue.h
  393. engine->RegisterObjectMethod("JSONValue", "JSONValue& opIndex(const String&in)", AS_METHODPR(JSONValue, operator[], (const String&), JSONValue&), AS_CALL_THISCALL);
  394. // const JSONValue& JSONValue::operator[](const String& key) const | File: ../Resource/JSONValue.h
  395. engine->RegisterObjectMethod("JSONValue", "const JSONValue& opIndex(const String&in) const", AS_METHODPR(JSONValue, operator[], (const String&) const, const JSONValue&), AS_CALL_THISCALL);
  396. // void JSONValue::Pop() | File: ../Resource/JSONValue.h
  397. engine->RegisterObjectMethod("JSONValue", "void Pop()", AS_METHODPR(JSONValue, Pop, (), void), AS_CALL_THISCALL);
  398. // void JSONValue::Push(const JSONValue& value) | File: ../Resource/JSONValue.h
  399. engine->RegisterObjectMethod("JSONValue", "void Push(const JSONValue&in)", AS_METHODPR(JSONValue, Push, (const JSONValue&), void), AS_CALL_THISCALL);
  400. // void JSONValue::Resize(unsigned newSize) | File: ../Resource/JSONValue.h
  401. engine->RegisterObjectMethod("JSONValue", "void Resize(uint)", AS_METHODPR(JSONValue, Resize, (unsigned), void), AS_CALL_THISCALL);
  402. // void JSONValue::Set(const String& key, const JSONValue& value) | File: ../Resource/JSONValue.h
  403. engine->RegisterObjectMethod("JSONValue", "void Set(const String&in, const JSONValue&in)", AS_METHODPR(JSONValue, Set, (const String&, const JSONValue&), void), AS_CALL_THISCALL);
  404. // void JSONValue::SetType(JSONValueType valueType, JSONNumberType numberType=JSONNT_NAN) | File: ../Resource/JSONValue.h
  405. engine->RegisterObjectMethod("JSONValue", "void SetType(JSONValueType, JSONNumberType = JSONNT_NAN)", AS_METHODPR(JSONValue, SetType, (JSONValueType, JSONNumberType), void), AS_CALL_THISCALL);
  406. // void JSONValue::SetVariant(const Variant& variant, Context* context=nullptr) | File: ../Resource/JSONValue.h
  407. engine->RegisterObjectMethod("JSONValue", "void SetVariant(const Variant&in)", AS_FUNCTION_OBJFIRST(JSONValue_SetVariant_Variant_Context), AS_CALL_CDECL_OBJFIRST);
  408. // void JSONValue::SetVariantMap(const VariantMap& variantMap, Context* context=nullptr) | File: ../Resource/JSONValue.h
  409. engine->RegisterObjectMethod("JSONValue", "void SetVariantMap(const VariantMap&in)", AS_FUNCTION_OBJFIRST(JSONValue_SetVariantMap_VariantMap_Context), AS_CALL_CDECL_OBJFIRST);
  410. // void JSONValue::SetVariantValue(const Variant& variant, Context* context=nullptr) | File: ../Resource/JSONValue.h
  411. engine->RegisterObjectMethod("JSONValue", "void SetVariantValue(const Variant&in)", AS_FUNCTION_OBJFIRST(JSONValue_SetVariantValue_Variant_Context), AS_CALL_CDECL_OBJFIRST);
  412. // void JSONValue::SetVariantVector(const VariantVector& variantVector, Context* context=nullptr) | File: ../Resource/JSONValue.h
  413. // Error: type "const VariantVector&" can not automatically bind
  414. // unsigned JSONValue::Size() const | File: ../Resource/JSONValue.h
  415. engine->RegisterObjectMethod("JSONValue", "uint Size() const", AS_METHODPR(JSONValue, Size, () const, unsigned), AS_CALL_THISCALL);
  416. engine->RegisterObjectMethod("JSONValue", "uint get_size() const", AS_METHODPR(JSONValue, Size, () const, unsigned), AS_CALL_THISCALL);
  417. #ifdef REGISTER_MANUAL_PART_JSONValue
  418. REGISTER_MANUAL_PART_JSONValue(JSONValue, "JSONValue")
  419. #endif
  420. // PODVector<float> JoystickState::axes_ | File: ../Input/Input.h
  421. // Error: type "PODVector<float>" can not automatically bind
  422. // PODVector<bool> JoystickState::buttonPress_ | File: ../Input/Input.h
  423. // Error: type "PODVector<bool>" can not automatically bind
  424. // PODVector<bool> JoystickState::buttons_ | File: ../Input/Input.h
  425. // Error: type "PODVector<bool>" can not automatically bind
  426. // SDL_GameController* JoystickState::controller_ | File: ../Input/Input.h
  427. // SDL_GameController* can not be registered
  428. // PODVector<int> JoystickState::hats_ | File: ../Input/Input.h
  429. // Error: type "PODVector<int>" can not automatically bind
  430. // SDL_Joystick* JoystickState::joystick_ | File: ../Input/Input.h
  431. // SDL_Joystick* can not be registered
  432. // SDL_JoystickID JoystickState::joystickID_ | File: ../Input/Input.h
  433. engine->RegisterObjectProperty("JoystickState", "SDL_JoystickID joystickID", offsetof(JoystickState, joystickID_));
  434. // String JoystickState::name_ | File: ../Input/Input.h
  435. engine->RegisterObjectProperty("JoystickState", "String name", offsetof(JoystickState, name_));
  436. // UIElement* JoystickState::screenJoystick_ | File: ../Input/Input.h
  437. // UIElement* can not be registered
  438. // float JoystickState::GetAxisPosition(unsigned index) const | File: ../Input/Input.h
  439. engine->RegisterObjectMethod("JoystickState", "float GetAxisPosition(uint) const", AS_METHODPR(JoystickState, GetAxisPosition, (unsigned) const, float), AS_CALL_THISCALL);
  440. engine->RegisterObjectMethod("JoystickState", "float get_axisPosition(uint) const", AS_METHODPR(JoystickState, GetAxisPosition, (unsigned) const, float), AS_CALL_THISCALL);
  441. // bool JoystickState::GetButtonDown(unsigned index) const | File: ../Input/Input.h
  442. engine->RegisterObjectMethod("JoystickState", "bool GetButtonDown(uint) const", AS_METHODPR(JoystickState, GetButtonDown, (unsigned) const, bool), AS_CALL_THISCALL);
  443. engine->RegisterObjectMethod("JoystickState", "bool get_buttonDown(uint) const", AS_METHODPR(JoystickState, GetButtonDown, (unsigned) const, bool), AS_CALL_THISCALL);
  444. // bool JoystickState::GetButtonPress(unsigned index) const | File: ../Input/Input.h
  445. engine->RegisterObjectMethod("JoystickState", "bool GetButtonPress(uint) const", AS_METHODPR(JoystickState, GetButtonPress, (unsigned) const, bool), AS_CALL_THISCALL);
  446. engine->RegisterObjectMethod("JoystickState", "bool get_buttonPress(uint) const", AS_METHODPR(JoystickState, GetButtonPress, (unsigned) const, bool), AS_CALL_THISCALL);
  447. // int JoystickState::GetHatPosition(unsigned index) const | File: ../Input/Input.h
  448. engine->RegisterObjectMethod("JoystickState", "int GetHatPosition(uint) const", AS_METHODPR(JoystickState, GetHatPosition, (unsigned) const, int), AS_CALL_THISCALL);
  449. engine->RegisterObjectMethod("JoystickState", "int get_hatPosition(uint) const", AS_METHODPR(JoystickState, GetHatPosition, (unsigned) const, int), AS_CALL_THISCALL);
  450. // unsigned JoystickState::GetNumAxes() const | File: ../Input/Input.h
  451. engine->RegisterObjectMethod("JoystickState", "uint GetNumAxes() const", AS_METHODPR(JoystickState, GetNumAxes, () const, unsigned), AS_CALL_THISCALL);
  452. engine->RegisterObjectMethod("JoystickState", "uint get_numAxes() const", AS_METHODPR(JoystickState, GetNumAxes, () const, unsigned), AS_CALL_THISCALL);
  453. // unsigned JoystickState::GetNumButtons() const | File: ../Input/Input.h
  454. engine->RegisterObjectMethod("JoystickState", "uint GetNumButtons() const", AS_METHODPR(JoystickState, GetNumButtons, () const, unsigned), AS_CALL_THISCALL);
  455. engine->RegisterObjectMethod("JoystickState", "uint get_numButtons() const", AS_METHODPR(JoystickState, GetNumButtons, () const, unsigned), AS_CALL_THISCALL);
  456. // unsigned JoystickState::GetNumHats() const | File: ../Input/Input.h
  457. engine->RegisterObjectMethod("JoystickState", "uint GetNumHats() const", AS_METHODPR(JoystickState, GetNumHats, () const, unsigned), AS_CALL_THISCALL);
  458. engine->RegisterObjectMethod("JoystickState", "uint get_numHats() const", AS_METHODPR(JoystickState, GetNumHats, () const, unsigned), AS_CALL_THISCALL);
  459. // void JoystickState::Initialize(unsigned numButtons, unsigned numAxes, unsigned numHats) | File: ../Input/Input.h
  460. engine->RegisterObjectMethod("JoystickState", "void Initialize(uint, uint, uint)", AS_METHODPR(JoystickState, Initialize, (unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  461. // bool JoystickState::IsController() const | File: ../Input/Input.h
  462. engine->RegisterObjectMethod("JoystickState", "bool IsController() const", AS_METHODPR(JoystickState, IsController, () const, bool), AS_CALL_THISCALL);
  463. engine->RegisterObjectMethod("JoystickState", "bool get_controller() const", AS_METHODPR(JoystickState, IsController, () const, bool), AS_CALL_THISCALL);
  464. // void JoystickState::Reset() | File: ../Input/Input.h
  465. engine->RegisterObjectMethod("JoystickState", "void Reset()", AS_METHODPR(JoystickState, Reset, (), void), AS_CALL_THISCALL);
  466. // JoystickState& JoystickState::operator=(const JoystickState&) | Possible implicitly-declared
  467. RegisterImplicitlyDeclaredAssignOperatorIfPossible<JoystickState>(engine, "JoystickState");
  468. engine->RegisterObjectBehaviour("JoystickState", asBEHAVE_ADDREF, "void f()", AS_FUNCTION_OBJLAST(FakeAddRef), AS_CALL_CDECL_OBJLAST);
  469. engine->RegisterObjectBehaviour("JoystickState", asBEHAVE_RELEASE, "void f()", AS_FUNCTION_OBJLAST(FakeReleaseRef), AS_CALL_CDECL_OBJLAST);
  470. #ifdef REGISTER_MANUAL_PART_JoystickState
  471. REGISTER_MANUAL_PART_JoystickState(JoystickState, "JoystickState")
  472. #endif
  473. }
  474. }