Generated_Members_J.cpp 44 KB

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