Generated_Members_E.cpp 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. // DO NOT EDIT. This file is generated
  2. #include "../Precompiled.h"
  3. #include "../AngelScript/APITemplates.h"
  4. #include "../Core/Context.h"
  5. #include "../Core/EventProfiler.h"
  6. #include "../Engine/Engine.h"
  7. #include "../AngelScript/Manual.h"
  8. namespace Urho3D
  9. {
  10. void FakeAddRef(void* ptr);
  11. void FakeReleaseRef(void* ptr);
  12. // explicit Engine::Engine(Context* context) | File: ../Engine/Engine.h
  13. static Engine* Engine_Engine_Context()
  14. {
  15. return new Engine(GetScriptContext());
  16. }
  17. // static VariantMap Engine::ParseParameters(const Vector<String>& arguments) | File: ../Engine/Engine.h
  18. static VariantMap Engine_ParseParameters_VectorString(CScriptArray* arguments)
  19. {
  20. Vector<String> param0 = ArrayToVector<String>(arguments);
  21. VariantMap result = Engine::ParseParameters(param0);
  22. return result;
  23. }
  24. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  25. static void Engine_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool(Engine* ptr, CScriptArray* exceptions, bool onlyUserData)
  26. {
  27. PODVector<StringHash> param0 = ArrayToPODVector<StringHash>(exceptions);
  28. ptr->UnsubscribeFromAllEventsExcept(param0, onlyUserData);
  29. }
  30. // explicit EventProfiler::EventProfiler(Context* context) | File: ../Core/EventProfiler.h
  31. static EventProfiler* EventProfiler_EventProfiler_Context()
  32. {
  33. return new EventProfiler(GetScriptContext());
  34. }
  35. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  36. static void EventProfiler_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool(EventProfiler* ptr, CScriptArray* exceptions, bool onlyUserData)
  37. {
  38. PODVector<StringHash> param0 = ArrayToPODVector<StringHash>(exceptions);
  39. ptr->UnsubscribeFromAllEventsExcept(param0, onlyUserData);
  40. }
  41. // EventReceiverGroup::EventReceiverGroup() | File: ../Core/Context.h
  42. static EventReceiverGroup* EventReceiverGroup_EventReceiverGroup_void()
  43. {
  44. return new EventReceiverGroup();
  45. }
  46. void ASRegisterGenerated_Members_E(asIScriptEngine* engine)
  47. {
  48. // void RefCounted::AddRef() | File: ../Container/RefCounted.h
  49. engine->RegisterObjectBehaviour("Engine", asBEHAVE_ADDREF, "void f()", asMETHODPR(Engine, AddRef, (), void), asCALL_THISCALL);
  50. // void Engine::ApplyFrameLimit() | File: ../Engine/Engine.h
  51. engine->RegisterObjectMethod("Engine", "void ApplyFrameLimit()", asMETHODPR(Engine, ApplyFrameLimit, (), void), asCALL_THISCALL);
  52. // template<typename T> T* Object::Cast() | File: ../Core/Object.h
  53. // Not registered because template
  54. // template<typename T> const T* Object::Cast() const | File: ../Core/Object.h
  55. // Not registered because template
  56. // Console* Engine::CreateConsole() | File: ../Engine/Engine.h
  57. engine->RegisterObjectMethod("Engine", "Console@+ CreateConsole()", asMETHODPR(Engine, CreateConsole, (), Console*), asCALL_THISCALL);
  58. // DebugHud* Engine::CreateDebugHud() | File: ../Engine/Engine.h
  59. engine->RegisterObjectMethod("Engine", "DebugHud@+ CreateDebugHud()", asMETHODPR(Engine, CreateDebugHud, (), DebugHud*), asCALL_THISCALL);
  60. // void Engine::DumpMemory() | File: ../Engine/Engine.h
  61. engine->RegisterObjectMethod("Engine", "void DumpMemory()", asMETHODPR(Engine, DumpMemory, (), void), asCALL_THISCALL);
  62. // void Engine::DumpProfiler() | File: ../Engine/Engine.h
  63. engine->RegisterObjectMethod("Engine", "void DumpProfiler()", asMETHODPR(Engine, DumpProfiler, (), void), asCALL_THISCALL);
  64. // void Engine::DumpResources(bool dumpFileName=false) | File: ../Engine/Engine.h
  65. engine->RegisterObjectMethod("Engine", "void DumpResources(bool = false)", asMETHODPR(Engine, DumpResources, (bool), void), asCALL_THISCALL);
  66. // explicit Engine::Engine(Context* context) | File: ../Engine/Engine.h
  67. engine->RegisterObjectBehaviour("Engine", asBEHAVE_FACTORY, "Engine@+ f()", asFUNCTION(Engine_Engine_Context), asCALL_CDECL);
  68. // void Engine::Exit() | File: ../Engine/Engine.h
  69. engine->RegisterObjectMethod("Engine", "void Exit()", asMETHODPR(Engine, Exit, (), void), asCALL_THISCALL);
  70. // bool Engine::GetAutoExit() const | File: ../Engine/Engine.h
  71. engine->RegisterObjectMethod("Engine", "bool GetAutoExit() const", asMETHODPR(Engine, GetAutoExit, () const, bool), asCALL_THISCALL);
  72. engine->RegisterObjectMethod("Engine", "bool get_autoExit() const", asMETHODPR(Engine, GetAutoExit, () const, bool), asCALL_THISCALL);
  73. // bool Object::GetBlockEvents() const | File: ../Core/Object.h
  74. engine->RegisterObjectMethod("Engine", "bool GetBlockEvents() const", asMETHODPR(Engine, GetBlockEvents, () const, bool), asCALL_THISCALL);
  75. // const String& Object::GetCategory() const | File: ../Core/Object.h
  76. engine->RegisterObjectMethod("Engine", "const String& GetCategory() const", asMETHODPR(Engine, GetCategory, () const, const String&), asCALL_THISCALL);
  77. engine->RegisterObjectMethod("Engine", "const String& get_category() const", asMETHODPR(Engine, GetCategory, () const, const String&), asCALL_THISCALL);
  78. // Context* Object::GetContext() const | File: ../Core/Object.h
  79. // Error: type "Context*" can not be returned
  80. // VariantMap& Object::GetEventDataMap() const | File: ../Core/Object.h
  81. engine->RegisterObjectMethod("Engine", "VariantMap& GetEventDataMap() const", asMETHODPR(Engine, GetEventDataMap, () const, VariantMap&), asCALL_THISCALL);
  82. // EventHandler* Object::GetEventHandler() const | File: ../Core/Object.h
  83. // Error: type "EventHandler*" can not automatically bind
  84. // Object* Object::GetEventSender() const | File: ../Core/Object.h
  85. engine->RegisterObjectMethod("Engine", "Object@+ GetEventSender() const", asMETHODPR(Engine, GetEventSender, () const, Object*), asCALL_THISCALL);
  86. // const Variant& Object::GetGlobalVar(StringHash key) const | File: ../Core/Object.h
  87. engine->RegisterObjectMethod("Engine", "const Variant& GetGlobalVar(StringHash) const", asMETHODPR(Engine, GetGlobalVar, (StringHash) const, const Variant&), asCALL_THISCALL);
  88. engine->RegisterObjectMethod("Engine", "const Variant& get_globalVar(StringHash) const", asMETHODPR(Engine, GetGlobalVar, (StringHash) const, const Variant&), asCALL_THISCALL);
  89. // const VariantMap& Object::GetGlobalVars() const | File: ../Core/Object.h
  90. engine->RegisterObjectMethod("Engine", "const VariantMap& GetGlobalVars() const", asMETHODPR(Engine, GetGlobalVars, () const, const VariantMap&), asCALL_THISCALL);
  91. engine->RegisterObjectMethod("Engine", "const VariantMap& get_globalVars() const", asMETHODPR(Engine, GetGlobalVars, () const, const VariantMap&), asCALL_THISCALL);
  92. // int Engine::GetMaxFps() const | File: ../Engine/Engine.h
  93. engine->RegisterObjectMethod("Engine", "int GetMaxFps() const", asMETHODPR(Engine, GetMaxFps, () const, int), asCALL_THISCALL);
  94. engine->RegisterObjectMethod("Engine", "int get_maxFps() const", asMETHODPR(Engine, GetMaxFps, () const, int), asCALL_THISCALL);
  95. // int Engine::GetMaxInactiveFps() const | File: ../Engine/Engine.h
  96. engine->RegisterObjectMethod("Engine", "int GetMaxInactiveFps() const", asMETHODPR(Engine, GetMaxInactiveFps, () const, int), asCALL_THISCALL);
  97. engine->RegisterObjectMethod("Engine", "int get_maxInactiveFps() const", asMETHODPR(Engine, GetMaxInactiveFps, () const, int), asCALL_THISCALL);
  98. // int Engine::GetMinFps() const | File: ../Engine/Engine.h
  99. engine->RegisterObjectMethod("Engine", "int GetMinFps() const", asMETHODPR(Engine, GetMinFps, () const, int), asCALL_THISCALL);
  100. engine->RegisterObjectMethod("Engine", "int get_minFps() const", asMETHODPR(Engine, GetMinFps, () const, int), asCALL_THISCALL);
  101. // float Engine::GetNextTimeStep() const | File: ../Engine/Engine.h
  102. engine->RegisterObjectMethod("Engine", "float GetNextTimeStep() const", asMETHODPR(Engine, GetNextTimeStep, () const, float), asCALL_THISCALL);
  103. // static const Variant& Engine::GetParameter(const VariantMap& parameters, const String& parameter, const Variant& defaultValue=Variant::EMPTY) | File: ../Engine/Engine.h
  104. engine->SetDefaultNamespace("Engine");
  105. engine->RegisterGlobalFunction("const Variant& GetParameter(const VariantMap&in, const String&in, const Variant&in = Variant::EMPTY)", asFUNCTIONPR(Engine::GetParameter, (const VariantMap&, const String&, const Variant&), const Variant&), asCALL_CDECL);
  106. engine->SetDefaultNamespace("");
  107. // bool Engine::GetPauseMinimized() const | File: ../Engine/Engine.h
  108. engine->RegisterObjectMethod("Engine", "bool GetPauseMinimized() const", asMETHODPR(Engine, GetPauseMinimized, () const, bool), asCALL_THISCALL);
  109. engine->RegisterObjectMethod("Engine", "bool get_pauseMinimized() const", asMETHODPR(Engine, GetPauseMinimized, () const, bool), asCALL_THISCALL);
  110. // Object* Object::GetSubsystem(StringHash type) const | File: ../Core/Object.h
  111. engine->RegisterObjectMethod("Engine", "Object@+ GetSubsystem(StringHash) const", asMETHODPR(Engine, GetSubsystem, (StringHash) const, Object*), asCALL_THISCALL);
  112. // template<class T> T* Object::GetSubsystem() const | File: ../Core/Object.h
  113. // Not registered because template
  114. // int Engine::GetTimeStepSmoothing() const | File: ../Engine/Engine.h
  115. engine->RegisterObjectMethod("Engine", "int GetTimeStepSmoothing() const", asMETHODPR(Engine, GetTimeStepSmoothing, () const, int), asCALL_THISCALL);
  116. engine->RegisterObjectMethod("Engine", "int get_timeStepSmoothing() const", asMETHODPR(Engine, GetTimeStepSmoothing, () const, int), asCALL_THISCALL);
  117. // virtual StringHash Object::GetType() const =0 | File: ../Core/Object.h
  118. engine->RegisterObjectMethod("Engine", "StringHash GetType() const", asMETHODPR(Engine, GetType, () const, StringHash), asCALL_THISCALL);
  119. engine->RegisterObjectMethod("Engine", "StringHash get_type() const", asMETHODPR(Engine, GetType, () const, StringHash), asCALL_THISCALL);
  120. // virtual const TypeInfo* Object::GetTypeInfo() const =0 | File: ../Core/Object.h
  121. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  122. // static const TypeInfo* Object::GetTypeInfoStatic() | File: ../Core/Object.h
  123. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  124. // virtual const String& Object::GetTypeName() const =0 | File: ../Core/Object.h
  125. engine->RegisterObjectMethod("Engine", "const String& GetTypeName() const", asMETHODPR(Engine, GetTypeName, () const, const String&), asCALL_THISCALL);
  126. engine->RegisterObjectMethod("Engine", "const String& get_typeName() const", asMETHODPR(Engine, GetTypeName, () const, const String&), asCALL_THISCALL);
  127. // bool Object::HasEventHandlers() const | File: ../Core/Object.h
  128. engine->RegisterObjectMethod("Engine", "bool HasEventHandlers() const", asMETHODPR(Engine, HasEventHandlers, () const, bool), asCALL_THISCALL);
  129. // static bool Engine::HasParameter(const VariantMap& parameters, const String& parameter) | File: ../Engine/Engine.h
  130. engine->SetDefaultNamespace("Engine");
  131. engine->RegisterGlobalFunction("bool HasParameter(const VariantMap&in, const String&in)", asFUNCTIONPR(Engine::HasParameter, (const VariantMap&, const String&), bool), asCALL_CDECL);
  132. engine->SetDefaultNamespace("");
  133. // bool Object::HasSubscribedToEvent(StringHash eventType) const | File: ../Core/Object.h
  134. engine->RegisterObjectMethod("Engine", "bool HasSubscribedToEvent(StringHash) const", asMETHODPR(Engine, HasSubscribedToEvent, (StringHash) const, bool), asCALL_THISCALL);
  135. // bool Object::HasSubscribedToEvent(Object* sender, StringHash eventType) const | File: ../Core/Object.h
  136. engine->RegisterObjectMethod("Engine", "bool HasSubscribedToEvent(Object@+, StringHash) const", asMETHODPR(Engine, HasSubscribedToEvent, (Object*, StringHash) const, bool), asCALL_THISCALL);
  137. // bool Engine::Initialize(const VariantMap& parameters) | File: ../Engine/Engine.h
  138. engine->RegisterObjectMethod("Engine", "bool Initialize(const VariantMap&in)", asMETHODPR(Engine, Initialize, (const VariantMap&), bool), asCALL_THISCALL);
  139. // bool Engine::InitializeResourceCache(const VariantMap& parameters, bool removeOld=true) | File: ../Engine/Engine.h
  140. engine->RegisterObjectMethod("Engine", "bool InitializeResourceCache(const VariantMap&in, bool = true)", asMETHODPR(Engine, InitializeResourceCache, (const VariantMap&, bool), bool), asCALL_THISCALL);
  141. // bool Engine::IsExiting() const | File: ../Engine/Engine.h
  142. engine->RegisterObjectMethod("Engine", "bool IsExiting() const", asMETHODPR(Engine, IsExiting, () const, bool), asCALL_THISCALL);
  143. engine->RegisterObjectMethod("Engine", "bool get_exiting() const", asMETHODPR(Engine, IsExiting, () const, bool), asCALL_THISCALL);
  144. // bool Engine::IsHeadless() const | File: ../Engine/Engine.h
  145. engine->RegisterObjectMethod("Engine", "bool IsHeadless() const", asMETHODPR(Engine, IsHeadless, () const, bool), asCALL_THISCALL);
  146. engine->RegisterObjectMethod("Engine", "bool get_headless() const", asMETHODPR(Engine, IsHeadless, () const, bool), asCALL_THISCALL);
  147. // bool Engine::IsInitialized() const | File: ../Engine/Engine.h
  148. engine->RegisterObjectMethod("Engine", "bool IsInitialized() const", asMETHODPR(Engine, IsInitialized, () const, bool), asCALL_THISCALL);
  149. engine->RegisterObjectMethod("Engine", "bool get_initialized() const", asMETHODPR(Engine, IsInitialized, () const, bool), asCALL_THISCALL);
  150. // bool Object::IsInstanceOf(StringHash type) const | File: ../Core/Object.h
  151. engine->RegisterObjectMethod("Engine", "bool IsInstanceOf(StringHash) const", asMETHODPR(Engine, IsInstanceOf, (StringHash) const, bool), asCALL_THISCALL);
  152. // bool Object::IsInstanceOf(const TypeInfo* typeInfo) const | File: ../Core/Object.h
  153. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  154. // template<typename T> bool Object::IsInstanceOf() const | File: ../Core/Object.h
  155. // Not registered because template
  156. // virtual void Object::OnEvent(Object* sender, StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  157. engine->RegisterObjectMethod("Engine", "void OnEvent(Object@+, StringHash, VariantMap&)", asMETHODPR(Engine, OnEvent, (Object*, StringHash, VariantMap&), void), asCALL_THISCALL);
  158. // static VariantMap Engine::ParseParameters(const Vector<String>& arguments) | File: ../Engine/Engine.h
  159. engine->SetDefaultNamespace("Engine");
  160. engine->RegisterGlobalFunction("VariantMap ParseParameters(Array<String>@+)", asFUNCTION(Engine_ParseParameters_VectorString), asCALL_CDECL);
  161. engine->SetDefaultNamespace("");
  162. // RefCount* RefCounted::RefCountPtr() | File: ../Container/RefCounted.h
  163. // Error: type "RefCount*" can not automatically bind
  164. // int RefCounted::Refs() const | File: ../Container/RefCounted.h
  165. engine->RegisterObjectMethod("Engine", "int Refs() const", asMETHODPR(Engine, Refs, () const, int), asCALL_THISCALL);
  166. engine->RegisterObjectMethod("Engine", "int get_refs() const", asMETHODPR(Engine, Refs, () const, int), asCALL_THISCALL);
  167. // void RefCounted::ReleaseRef() | File: ../Container/RefCounted.h
  168. engine->RegisterObjectBehaviour("Engine", asBEHAVE_RELEASE, "void f()", asMETHODPR(Engine, ReleaseRef, (), void), asCALL_THISCALL);
  169. // void Engine::Render() | File: ../Engine/Engine.h
  170. engine->RegisterObjectMethod("Engine", "void Render()", asMETHODPR(Engine, Render, (), void), asCALL_THISCALL);
  171. // void Engine::RunFrame() | File: ../Engine/Engine.h
  172. engine->RegisterObjectMethod("Engine", "void RunFrame()", asMETHODPR(Engine, RunFrame, (), void), asCALL_THISCALL);
  173. // void Object::SendEvent(StringHash eventType) | File: ../Core/Object.h
  174. engine->RegisterObjectMethod("Engine", "void SendEvent(StringHash)", asMETHODPR(Engine, SendEvent, (StringHash), void), asCALL_THISCALL);
  175. // void Object::SendEvent(StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  176. engine->RegisterObjectMethod("Engine", "void SendEvent(StringHash, VariantMap&)", asMETHODPR(Engine, SendEvent, (StringHash, VariantMap&), void), asCALL_THISCALL);
  177. // template<typename... Args> void Object::SendEvent(StringHash eventType, Args... args) | File: ../Core/Object.h
  178. // Not registered because template
  179. // void Engine::SetAutoExit(bool enable) | File: ../Engine/Engine.h
  180. engine->RegisterObjectMethod("Engine", "void SetAutoExit(bool)", asMETHODPR(Engine, SetAutoExit, (bool), void), asCALL_THISCALL);
  181. engine->RegisterObjectMethod("Engine", "void set_autoExit(bool)", asMETHODPR(Engine, SetAutoExit, (bool), void), asCALL_THISCALL);
  182. // void Object::SetBlockEvents(bool block) | File: ../Core/Object.h
  183. engine->RegisterObjectMethod("Engine", "void SetBlockEvents(bool)", asMETHODPR(Engine, SetBlockEvents, (bool), void), asCALL_THISCALL);
  184. // void Object::SetGlobalVar(StringHash key, const Variant& value) | File: ../Core/Object.h
  185. engine->RegisterObjectMethod("Engine", "void SetGlobalVar(StringHash, const Variant&in)", asMETHODPR(Engine, SetGlobalVar, (StringHash, const Variant&), void), asCALL_THISCALL);
  186. engine->RegisterObjectMethod("Engine", "void set_globalVar(StringHash, const Variant&in)", asMETHODPR(Engine, SetGlobalVar, (StringHash, const Variant&), void), asCALL_THISCALL);
  187. // void Engine::SetMaxFps(int fps) | File: ../Engine/Engine.h
  188. engine->RegisterObjectMethod("Engine", "void SetMaxFps(int)", asMETHODPR(Engine, SetMaxFps, (int), void), asCALL_THISCALL);
  189. engine->RegisterObjectMethod("Engine", "void set_maxFps(int)", asMETHODPR(Engine, SetMaxFps, (int), void), asCALL_THISCALL);
  190. // void Engine::SetMaxInactiveFps(int fps) | File: ../Engine/Engine.h
  191. engine->RegisterObjectMethod("Engine", "void SetMaxInactiveFps(int)", asMETHODPR(Engine, SetMaxInactiveFps, (int), void), asCALL_THISCALL);
  192. engine->RegisterObjectMethod("Engine", "void set_maxInactiveFps(int)", asMETHODPR(Engine, SetMaxInactiveFps, (int), void), asCALL_THISCALL);
  193. // void Engine::SetMinFps(int fps) | File: ../Engine/Engine.h
  194. engine->RegisterObjectMethod("Engine", "void SetMinFps(int)", asMETHODPR(Engine, SetMinFps, (int), void), asCALL_THISCALL);
  195. engine->RegisterObjectMethod("Engine", "void set_minFps(int)", asMETHODPR(Engine, SetMinFps, (int), void), asCALL_THISCALL);
  196. // void Engine::SetNextTimeStep(float seconds) | File: ../Engine/Engine.h
  197. engine->RegisterObjectMethod("Engine", "void SetNextTimeStep(float)", asMETHODPR(Engine, SetNextTimeStep, (float), void), asCALL_THISCALL);
  198. // void Engine::SetPauseMinimized(bool enable) | File: ../Engine/Engine.h
  199. engine->RegisterObjectMethod("Engine", "void SetPauseMinimized(bool)", asMETHODPR(Engine, SetPauseMinimized, (bool), void), asCALL_THISCALL);
  200. engine->RegisterObjectMethod("Engine", "void set_pauseMinimized(bool)", asMETHODPR(Engine, SetPauseMinimized, (bool), void), asCALL_THISCALL);
  201. // void Engine::SetTimeStepSmoothing(int frames) | File: ../Engine/Engine.h
  202. engine->RegisterObjectMethod("Engine", "void SetTimeStepSmoothing(int)", asMETHODPR(Engine, SetTimeStepSmoothing, (int), void), asCALL_THISCALL);
  203. engine->RegisterObjectMethod("Engine", "void set_timeStepSmoothing(int)", asMETHODPR(Engine, SetTimeStepSmoothing, (int), void), asCALL_THISCALL);
  204. // void Object::SubscribeToEvent(StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  205. // Error: type "EventHandler*" can not automatically bind
  206. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  207. // Error: type "EventHandler*" can not automatically bind
  208. // void Object::SubscribeToEvent(StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  209. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  210. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  211. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  212. // void Object::UnsubscribeFromAllEvents() | File: ../Core/Object.h
  213. engine->RegisterObjectMethod("Engine", "void UnsubscribeFromAllEvents()", asMETHODPR(Engine, UnsubscribeFromAllEvents, (), void), asCALL_THISCALL);
  214. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  215. engine->RegisterObjectMethod("Engine", "void UnsubscribeFromAllEventsExcept(Array<StringHash>@+, bool)", asFUNCTION(Engine_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool), asCALL_CDECL_OBJFIRST);
  216. // void Object::UnsubscribeFromEvent(StringHash eventType) | File: ../Core/Object.h
  217. engine->RegisterObjectMethod("Engine", "void UnsubscribeFromEvent(StringHash)", asMETHODPR(Engine, UnsubscribeFromEvent, (StringHash), void), asCALL_THISCALL);
  218. // void Object::UnsubscribeFromEvent(Object* sender, StringHash eventType) | File: ../Core/Object.h
  219. engine->RegisterObjectMethod("Engine", "void UnsubscribeFromEvent(Object@+, StringHash)", asMETHODPR(Engine, UnsubscribeFromEvent, (Object*, StringHash), void), asCALL_THISCALL);
  220. // void Object::UnsubscribeFromEvents(Object* sender) | File: ../Core/Object.h
  221. engine->RegisterObjectMethod("Engine", "void UnsubscribeFromEvents(Object@+)", asMETHODPR(Engine, UnsubscribeFromEvents, (Object*), void), asCALL_THISCALL);
  222. // void Engine::Update() | File: ../Engine/Engine.h
  223. engine->RegisterObjectMethod("Engine", "void Update()", asMETHODPR(Engine, Update, (), void), asCALL_THISCALL);
  224. // int RefCounted::WeakRefs() const | File: ../Container/RefCounted.h
  225. engine->RegisterObjectMethod("Engine", "int WeakRefs() const", asMETHODPR(Engine, WeakRefs, () const, int), asCALL_THISCALL);
  226. engine->RegisterObjectMethod("Engine", "int get_weakRefs() const", asMETHODPR(Engine, WeakRefs, () const, int), asCALL_THISCALL);
  227. #ifdef REGISTER_MANUAL_PART_Object
  228. REGISTER_MANUAL_PART_Object(Engine, "Engine")
  229. #endif
  230. #ifdef REGISTER_MANUAL_PART_RefCounted
  231. REGISTER_MANUAL_PART_RefCounted(Engine, "Engine")
  232. #endif
  233. #ifdef REGISTER_MANUAL_PART_Engine
  234. REGISTER_MANUAL_PART_Engine(Engine, "Engine")
  235. #endif
  236. RegisterSubclass<Object, Engine>(engine, "Object", "Engine");
  237. RegisterSubclass<RefCounted, Engine>(engine, "RefCounted", "Engine");
  238. // void RefCounted::AddRef() | File: ../Container/RefCounted.h
  239. engine->RegisterObjectBehaviour("EventProfiler", asBEHAVE_ADDREF, "void f()", asMETHODPR(EventProfiler, AddRef, (), void), asCALL_THISCALL);
  240. // void EventProfiler::BeginBlock(StringHash eventID) | File: ../Core/EventProfiler.h
  241. engine->RegisterObjectMethod("EventProfiler", "void BeginBlock(StringHash)", asMETHODPR(EventProfiler, BeginBlock, (StringHash), void), asCALL_THISCALL);
  242. // void Profiler::BeginFrame() | File: ../Core/Profiler.h
  243. engine->RegisterObjectMethod("EventProfiler", "void BeginFrame()", asMETHODPR(EventProfiler, BeginFrame, (), void), asCALL_THISCALL);
  244. // void Profiler::BeginInterval() | File: ../Core/Profiler.h
  245. engine->RegisterObjectMethod("EventProfiler", "void BeginInterval()", asMETHODPR(EventProfiler, BeginInterval, (), void), asCALL_THISCALL);
  246. // template<typename T> T* Object::Cast() | File: ../Core/Object.h
  247. // Not registered because template
  248. // template<typename T> const T* Object::Cast() const | File: ../Core/Object.h
  249. // Not registered because template
  250. // void Profiler::EndBlock() | File: ../Core/Profiler.h
  251. engine->RegisterObjectMethod("EventProfiler", "void EndBlock()", asMETHODPR(EventProfiler, EndBlock, (), void), asCALL_THISCALL);
  252. // void Profiler::EndFrame() | File: ../Core/Profiler.h
  253. engine->RegisterObjectMethod("EventProfiler", "void EndFrame()", asMETHODPR(EventProfiler, EndFrame, (), void), asCALL_THISCALL);
  254. // explicit EventProfiler::EventProfiler(Context* context) | File: ../Core/EventProfiler.h
  255. engine->RegisterObjectBehaviour("EventProfiler", asBEHAVE_FACTORY, "EventProfiler@+ f()", asFUNCTION(EventProfiler_EventProfiler_Context), asCALL_CDECL);
  256. // bool Object::GetBlockEvents() const | File: ../Core/Object.h
  257. engine->RegisterObjectMethod("EventProfiler", "bool GetBlockEvents() const", asMETHODPR(EventProfiler, GetBlockEvents, () const, bool), asCALL_THISCALL);
  258. // const String& Object::GetCategory() const | File: ../Core/Object.h
  259. engine->RegisterObjectMethod("EventProfiler", "const String& GetCategory() const", asMETHODPR(EventProfiler, GetCategory, () const, const String&), asCALL_THISCALL);
  260. engine->RegisterObjectMethod("EventProfiler", "const String& get_category() const", asMETHODPR(EventProfiler, GetCategory, () const, const String&), asCALL_THISCALL);
  261. // Context* Object::GetContext() const | File: ../Core/Object.h
  262. // Error: type "Context*" can not be returned
  263. // const ProfilerBlock* Profiler::GetCurrentBlock() | File: ../Core/Profiler.h
  264. // Error: type "ProfilerBlock" can not automatically bind bacause have @nobind mark
  265. // VariantMap& Object::GetEventDataMap() const | File: ../Core/Object.h
  266. engine->RegisterObjectMethod("EventProfiler", "VariantMap& GetEventDataMap() const", asMETHODPR(EventProfiler, GetEventDataMap, () const, VariantMap&), asCALL_THISCALL);
  267. // EventHandler* Object::GetEventHandler() const | File: ../Core/Object.h
  268. // Error: type "EventHandler*" can not automatically bind
  269. // Object* Object::GetEventSender() const | File: ../Core/Object.h
  270. engine->RegisterObjectMethod("EventProfiler", "Object@+ GetEventSender() const", asMETHODPR(EventProfiler, GetEventSender, () const, Object*), asCALL_THISCALL);
  271. // const Variant& Object::GetGlobalVar(StringHash key) const | File: ../Core/Object.h
  272. engine->RegisterObjectMethod("EventProfiler", "const Variant& GetGlobalVar(StringHash) const", asMETHODPR(EventProfiler, GetGlobalVar, (StringHash) const, const Variant&), asCALL_THISCALL);
  273. engine->RegisterObjectMethod("EventProfiler", "const Variant& get_globalVar(StringHash) const", asMETHODPR(EventProfiler, GetGlobalVar, (StringHash) const, const Variant&), asCALL_THISCALL);
  274. // const VariantMap& Object::GetGlobalVars() const | File: ../Core/Object.h
  275. engine->RegisterObjectMethod("EventProfiler", "const VariantMap& GetGlobalVars() const", asMETHODPR(EventProfiler, GetGlobalVars, () const, const VariantMap&), asCALL_THISCALL);
  276. engine->RegisterObjectMethod("EventProfiler", "const VariantMap& get_globalVars() const", asMETHODPR(EventProfiler, GetGlobalVars, () const, const VariantMap&), asCALL_THISCALL);
  277. // const ProfilerBlock* Profiler::GetRootBlock() | File: ../Core/Profiler.h
  278. // Error: type "ProfilerBlock" can not automatically bind bacause have @nobind mark
  279. // Object* Object::GetSubsystem(StringHash type) const | File: ../Core/Object.h
  280. engine->RegisterObjectMethod("EventProfiler", "Object@+ GetSubsystem(StringHash) const", asMETHODPR(EventProfiler, GetSubsystem, (StringHash) const, Object*), asCALL_THISCALL);
  281. // template<class T> T* Object::GetSubsystem() const | File: ../Core/Object.h
  282. // Not registered because template
  283. // virtual StringHash Object::GetType() const =0 | File: ../Core/Object.h
  284. engine->RegisterObjectMethod("EventProfiler", "StringHash GetType() const", asMETHODPR(EventProfiler, GetType, () const, StringHash), asCALL_THISCALL);
  285. engine->RegisterObjectMethod("EventProfiler", "StringHash get_type() const", asMETHODPR(EventProfiler, GetType, () const, StringHash), asCALL_THISCALL);
  286. // virtual const TypeInfo* Object::GetTypeInfo() const =0 | File: ../Core/Object.h
  287. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  288. // static const TypeInfo* Object::GetTypeInfoStatic() | File: ../Core/Object.h
  289. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  290. // virtual const String& Object::GetTypeName() const =0 | File: ../Core/Object.h
  291. engine->RegisterObjectMethod("EventProfiler", "const String& GetTypeName() const", asMETHODPR(EventProfiler, GetTypeName, () const, const String&), asCALL_THISCALL);
  292. engine->RegisterObjectMethod("EventProfiler", "const String& get_typeName() const", asMETHODPR(EventProfiler, GetTypeName, () const, const String&), asCALL_THISCALL);
  293. // bool Object::HasEventHandlers() const | File: ../Core/Object.h
  294. engine->RegisterObjectMethod("EventProfiler", "bool HasEventHandlers() const", asMETHODPR(EventProfiler, HasEventHandlers, () const, bool), asCALL_THISCALL);
  295. // bool Object::HasSubscribedToEvent(StringHash eventType) const | File: ../Core/Object.h
  296. engine->RegisterObjectMethod("EventProfiler", "bool HasSubscribedToEvent(StringHash) const", asMETHODPR(EventProfiler, HasSubscribedToEvent, (StringHash) const, bool), asCALL_THISCALL);
  297. // bool Object::HasSubscribedToEvent(Object* sender, StringHash eventType) const | File: ../Core/Object.h
  298. engine->RegisterObjectMethod("EventProfiler", "bool HasSubscribedToEvent(Object@+, StringHash) const", asMETHODPR(EventProfiler, HasSubscribedToEvent, (Object*, StringHash) const, bool), asCALL_THISCALL);
  299. // static bool EventProfiler::IsActive() | File: ../Core/EventProfiler.h
  300. engine->SetDefaultNamespace("EventProfiler");
  301. engine->RegisterGlobalFunction("bool IsActive()", asFUNCTIONPR(EventProfiler::IsActive, (), bool), asCALL_CDECL);
  302. engine->SetDefaultNamespace("");
  303. // bool Object::IsInstanceOf(StringHash type) const | File: ../Core/Object.h
  304. engine->RegisterObjectMethod("EventProfiler", "bool IsInstanceOf(StringHash) const", asMETHODPR(EventProfiler, IsInstanceOf, (StringHash) const, bool), asCALL_THISCALL);
  305. // bool Object::IsInstanceOf(const TypeInfo* typeInfo) const | File: ../Core/Object.h
  306. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  307. // template<typename T> bool Object::IsInstanceOf() const | File: ../Core/Object.h
  308. // Not registered because template
  309. // virtual void Object::OnEvent(Object* sender, StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  310. engine->RegisterObjectMethod("EventProfiler", "void OnEvent(Object@+, StringHash, VariantMap&)", asMETHODPR(EventProfiler, OnEvent, (Object*, StringHash, VariantMap&), void), asCALL_THISCALL);
  311. // const String& Profiler::PrintData(bool showUnused=false, bool showTotal=false, unsigned maxDepth=M_MAX_UNSIGNED) const | File: ../Core/Profiler.h
  312. engine->RegisterObjectMethod("EventProfiler", "const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const", asMETHODPR(EventProfiler, PrintData, (bool, bool, unsigned) const, const String&), asCALL_THISCALL);
  313. // RefCount* RefCounted::RefCountPtr() | File: ../Container/RefCounted.h
  314. // Error: type "RefCount*" can not automatically bind
  315. // int RefCounted::Refs() const | File: ../Container/RefCounted.h
  316. engine->RegisterObjectMethod("EventProfiler", "int Refs() const", asMETHODPR(EventProfiler, Refs, () const, int), asCALL_THISCALL);
  317. engine->RegisterObjectMethod("EventProfiler", "int get_refs() const", asMETHODPR(EventProfiler, Refs, () const, int), asCALL_THISCALL);
  318. // void RefCounted::ReleaseRef() | File: ../Container/RefCounted.h
  319. engine->RegisterObjectBehaviour("EventProfiler", asBEHAVE_RELEASE, "void f()", asMETHODPR(EventProfiler, ReleaseRef, (), void), asCALL_THISCALL);
  320. // void Object::SendEvent(StringHash eventType) | File: ../Core/Object.h
  321. engine->RegisterObjectMethod("EventProfiler", "void SendEvent(StringHash)", asMETHODPR(EventProfiler, SendEvent, (StringHash), void), asCALL_THISCALL);
  322. // void Object::SendEvent(StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  323. engine->RegisterObjectMethod("EventProfiler", "void SendEvent(StringHash, VariantMap&)", asMETHODPR(EventProfiler, SendEvent, (StringHash, VariantMap&), void), asCALL_THISCALL);
  324. // template<typename... Args> void Object::SendEvent(StringHash eventType, Args... args) | File: ../Core/Object.h
  325. // Not registered because template
  326. // static void EventProfiler::SetActive(bool newActive) | File: ../Core/EventProfiler.h
  327. engine->SetDefaultNamespace("EventProfiler");
  328. engine->RegisterGlobalFunction("void SetActive(bool)", asFUNCTIONPR(EventProfiler::SetActive, (bool), void), asCALL_CDECL);
  329. engine->SetDefaultNamespace("");
  330. // void Object::SetBlockEvents(bool block) | File: ../Core/Object.h
  331. engine->RegisterObjectMethod("EventProfiler", "void SetBlockEvents(bool)", asMETHODPR(EventProfiler, SetBlockEvents, (bool), void), asCALL_THISCALL);
  332. // void Object::SetGlobalVar(StringHash key, const Variant& value) | File: ../Core/Object.h
  333. engine->RegisterObjectMethod("EventProfiler", "void SetGlobalVar(StringHash, const Variant&in)", asMETHODPR(EventProfiler, SetGlobalVar, (StringHash, const Variant&), void), asCALL_THISCALL);
  334. engine->RegisterObjectMethod("EventProfiler", "void set_globalVar(StringHash, const Variant&in)", asMETHODPR(EventProfiler, SetGlobalVar, (StringHash, const Variant&), void), asCALL_THISCALL);
  335. // void Object::SubscribeToEvent(StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  336. // Error: type "EventHandler*" can not automatically bind
  337. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  338. // Error: type "EventHandler*" can not automatically bind
  339. // void Object::SubscribeToEvent(StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  340. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  341. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  342. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  343. // void Object::UnsubscribeFromAllEvents() | File: ../Core/Object.h
  344. engine->RegisterObjectMethod("EventProfiler", "void UnsubscribeFromAllEvents()", asMETHODPR(EventProfiler, UnsubscribeFromAllEvents, (), void), asCALL_THISCALL);
  345. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  346. engine->RegisterObjectMethod("EventProfiler", "void UnsubscribeFromAllEventsExcept(Array<StringHash>@+, bool)", asFUNCTION(EventProfiler_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool), asCALL_CDECL_OBJFIRST);
  347. // void Object::UnsubscribeFromEvent(StringHash eventType) | File: ../Core/Object.h
  348. engine->RegisterObjectMethod("EventProfiler", "void UnsubscribeFromEvent(StringHash)", asMETHODPR(EventProfiler, UnsubscribeFromEvent, (StringHash), void), asCALL_THISCALL);
  349. // void Object::UnsubscribeFromEvent(Object* sender, StringHash eventType) | File: ../Core/Object.h
  350. engine->RegisterObjectMethod("EventProfiler", "void UnsubscribeFromEvent(Object@+, StringHash)", asMETHODPR(EventProfiler, UnsubscribeFromEvent, (Object*, StringHash), void), asCALL_THISCALL);
  351. // void Object::UnsubscribeFromEvents(Object* sender) | File: ../Core/Object.h
  352. engine->RegisterObjectMethod("EventProfiler", "void UnsubscribeFromEvents(Object@+)", asMETHODPR(EventProfiler, UnsubscribeFromEvents, (Object*), void), asCALL_THISCALL);
  353. // int RefCounted::WeakRefs() const | File: ../Container/RefCounted.h
  354. engine->RegisterObjectMethod("EventProfiler", "int WeakRefs() const", asMETHODPR(EventProfiler, WeakRefs, () const, int), asCALL_THISCALL);
  355. engine->RegisterObjectMethod("EventProfiler", "int get_weakRefs() const", asMETHODPR(EventProfiler, WeakRefs, () const, int), asCALL_THISCALL);
  356. #ifdef REGISTER_MANUAL_PART_Profiler
  357. REGISTER_MANUAL_PART_Profiler(EventProfiler, "EventProfiler")
  358. #endif
  359. #ifdef REGISTER_MANUAL_PART_Object
  360. REGISTER_MANUAL_PART_Object(EventProfiler, "EventProfiler")
  361. #endif
  362. #ifdef REGISTER_MANUAL_PART_RefCounted
  363. REGISTER_MANUAL_PART_RefCounted(EventProfiler, "EventProfiler")
  364. #endif
  365. #ifdef REGISTER_MANUAL_PART_EventProfiler
  366. REGISTER_MANUAL_PART_EventProfiler(EventProfiler, "EventProfiler")
  367. #endif
  368. RegisterSubclass<Profiler, EventProfiler>(engine, "Profiler", "EventProfiler");
  369. RegisterSubclass<Object, EventProfiler>(engine, "Object", "EventProfiler");
  370. RegisterSubclass<RefCounted, EventProfiler>(engine, "RefCounted", "EventProfiler");
  371. // PODVector<Object*> EventReceiverGroup::receivers_ | File: ../Core/Context.h
  372. // Error: type "PODVector<Object*>" can not automatically bind
  373. // void EventReceiverGroup::Add(Object* object) | File: ../Core/Context.h
  374. engine->RegisterObjectMethod("EventReceiverGroup", "void Add(Object@+)", asMETHODPR(EventReceiverGroup, Add, (Object*), void), asCALL_THISCALL);
  375. // void RefCounted::AddRef() | File: ../Container/RefCounted.h
  376. engine->RegisterObjectBehaviour("EventReceiverGroup", asBEHAVE_ADDREF, "void f()", asMETHODPR(EventReceiverGroup, AddRef, (), void), asCALL_THISCALL);
  377. // void EventReceiverGroup::BeginSendEvent() | File: ../Core/Context.h
  378. engine->RegisterObjectMethod("EventReceiverGroup", "void BeginSendEvent()", asMETHODPR(EventReceiverGroup, BeginSendEvent, (), void), asCALL_THISCALL);
  379. // void EventReceiverGroup::EndSendEvent() | File: ../Core/Context.h
  380. engine->RegisterObjectMethod("EventReceiverGroup", "void EndSendEvent()", asMETHODPR(EventReceiverGroup, EndSendEvent, (), void), asCALL_THISCALL);
  381. // EventReceiverGroup::EventReceiverGroup() | File: ../Core/Context.h
  382. engine->RegisterObjectBehaviour("EventReceiverGroup", asBEHAVE_FACTORY, "EventReceiverGroup@+ f()", asFUNCTION(EventReceiverGroup_EventReceiverGroup_void), asCALL_CDECL);
  383. // RefCount* RefCounted::RefCountPtr() | File: ../Container/RefCounted.h
  384. // Error: type "RefCount*" can not automatically bind
  385. // int RefCounted::Refs() const | File: ../Container/RefCounted.h
  386. engine->RegisterObjectMethod("EventReceiverGroup", "int Refs() const", asMETHODPR(EventReceiverGroup, Refs, () const, int), asCALL_THISCALL);
  387. engine->RegisterObjectMethod("EventReceiverGroup", "int get_refs() const", asMETHODPR(EventReceiverGroup, Refs, () const, int), asCALL_THISCALL);
  388. // void RefCounted::ReleaseRef() | File: ../Container/RefCounted.h
  389. engine->RegisterObjectBehaviour("EventReceiverGroup", asBEHAVE_RELEASE, "void f()", asMETHODPR(EventReceiverGroup, ReleaseRef, (), void), asCALL_THISCALL);
  390. // void EventReceiverGroup::Remove(Object* object) | File: ../Core/Context.h
  391. engine->RegisterObjectMethod("EventReceiverGroup", "void Remove(Object@+)", asMETHODPR(EventReceiverGroup, Remove, (Object*), void), asCALL_THISCALL);
  392. // int RefCounted::WeakRefs() const | File: ../Container/RefCounted.h
  393. engine->RegisterObjectMethod("EventReceiverGroup", "int WeakRefs() const", asMETHODPR(EventReceiverGroup, WeakRefs, () const, int), asCALL_THISCALL);
  394. engine->RegisterObjectMethod("EventReceiverGroup", "int get_weakRefs() const", asMETHODPR(EventReceiverGroup, WeakRefs, () const, int), asCALL_THISCALL);
  395. #ifdef REGISTER_MANUAL_PART_RefCounted
  396. REGISTER_MANUAL_PART_RefCounted(EventReceiverGroup, "EventReceiverGroup")
  397. #endif
  398. #ifdef REGISTER_MANUAL_PART_EventReceiverGroup
  399. REGISTER_MANUAL_PART_EventReceiverGroup(EventReceiverGroup, "EventReceiverGroup")
  400. #endif
  401. RegisterSubclass<RefCounted, EventReceiverGroup>(engine, "RefCounted", "EventReceiverGroup");
  402. }
  403. }