Generated_Members_X.cpp 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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. // Vector<String> XMLElement::GetAttributeNames() const | File: ../Resource/XMLElement.h
  11. static CScriptArray* XMLElement_GetAttributeNames_void(XMLElement* ptr)
  12. {
  13. Vector<String> result = ptr->GetAttributeNames();
  14. return VectorToArray<String>(result, "Array<String>");
  15. }
  16. // StringVector XMLElement::GetStringVector() const | File: ../Resource/XMLElement.h
  17. static CScriptArray* XMLElement_GetStringVector_void(XMLElement* ptr)
  18. {
  19. StringVector result = ptr->GetStringVector();
  20. return VectorToArray<String>(result, "Array<String>");
  21. }
  22. // XMLElement::XMLElement(const XMLElement& rhs) | File: ../Resource/XMLElement.h
  23. static void XMLElement_XMLElement_XMLElement(XMLElement* ptr, const XMLElement &rhs)
  24. {
  25. new(ptr) XMLElement(rhs);
  26. }
  27. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  28. static void XMLFile_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool(XMLFile* ptr, CScriptArray* exceptions, bool onlyUserData)
  29. {
  30. PODVector<StringHash> exceptions_conv = ArrayToPODVector<StringHash>(exceptions);
  31. ptr->UnsubscribeFromAllEventsExcept(exceptions_conv, onlyUserData);
  32. }
  33. // explicit XMLFile::XMLFile(Context* context) | File: ../Resource/XMLFile.h
  34. static XMLFile* XMLFile_XMLFile_Context()
  35. {
  36. return new XMLFile(GetScriptContext());
  37. }
  38. // explicit XPathQuery::XPathQuery(const String& queryString, const String& variableString=String::EMPTY) | File: ../Resource/XMLElement.h
  39. static void XPathQuery_XPathQuery_String_String(XPathQuery* ptr, const String &queryString, const String &variableString=String::EMPTY)
  40. {
  41. new(ptr) XPathQuery(queryString, variableString);
  42. }
  43. // XPathResultSet::XPathResultSet(const XPathResultSet& rhs) | File: ../Resource/XMLElement.h
  44. static void XPathResultSet_XPathResultSet_XPathResultSet(XPathResultSet* ptr, const XPathResultSet &rhs)
  45. {
  46. new(ptr) XPathResultSet(rhs);
  47. }
  48. void ASRegisterGenerated_Members_X(asIScriptEngine* engine)
  49. {
  50. // const XMLElement XMLElement::EMPTY | File: ../Resource/XMLElement.h
  51. engine->SetDefaultNamespace("XMLElement");
  52. engine->RegisterGlobalProperty("const XMLElement EMPTY", (void*)&XMLElement::EMPTY);
  53. engine->SetDefaultNamespace("");
  54. // bool XMLElement::AppendChild(XMLElement element, bool asCopy=false) | File: ../Resource/XMLElement.h
  55. engine->RegisterObjectMethod("XMLElement", "bool AppendChild(XMLElement, bool = false)", asMETHODPR(XMLElement, AppendChild, (XMLElement, bool), bool), asCALL_THISCALL);
  56. // XMLElement XMLElement::CreateChild(const String& name) | File: ../Resource/XMLElement.h
  57. engine->RegisterObjectMethod("XMLElement", "XMLElement CreateChild(const String&in)", asMETHODPR(XMLElement, CreateChild, (const String&), XMLElement), asCALL_THISCALL);
  58. // XMLElement XMLElement::CreateChild(const char* name) | File: ../Resource/XMLElement.h
  59. // Error: type "const char*" can not automatically bind
  60. // String XMLElement::GetAttribute(const String& name=String::EMPTY) const | File: ../Resource/XMLElement.h
  61. engine->RegisterObjectMethod("XMLElement", "String GetAttribute(const String&in = String::EMPTY) const", asMETHODPR(XMLElement, GetAttribute, (const String&) const, String), asCALL_THISCALL);
  62. // String XMLElement::GetAttribute(const char* name) const | File: ../Resource/XMLElement.h
  63. // Error: type "const char*" can not automatically bind
  64. // const char* XMLElement::GetAttributeCString(const char* name) const | File: ../Resource/XMLElement.h
  65. // Error: type "const char*" can not automatically bind
  66. // String XMLElement::GetAttributeLower(const String& name) const | File: ../Resource/XMLElement.h
  67. engine->RegisterObjectMethod("XMLElement", "String GetAttributeLower(const String&in) const", asMETHODPR(XMLElement, GetAttributeLower, (const String&) const, String), asCALL_THISCALL);
  68. // String XMLElement::GetAttributeLower(const char* name) const | File: ../Resource/XMLElement.h
  69. // Error: type "const char*" can not automatically bind
  70. // Vector<String> XMLElement::GetAttributeNames() const | File: ../Resource/XMLElement.h
  71. engine->RegisterObjectMethod("XMLElement", "Array<String>@ GetAttributeNames() const", asFUNCTION(XMLElement_GetAttributeNames_void), asCALL_CDECL_OBJFIRST);
  72. // String XMLElement::GetAttributeUpper(const String& name) const | File: ../Resource/XMLElement.h
  73. engine->RegisterObjectMethod("XMLElement", "String GetAttributeUpper(const String&in) const", asMETHODPR(XMLElement, GetAttributeUpper, (const String&) const, String), asCALL_THISCALL);
  74. // String XMLElement::GetAttributeUpper(const char* name) const | File: ../Resource/XMLElement.h
  75. // Error: type "const char*" can not automatically bind
  76. // bool XMLElement::GetBool(const String& name) const | File: ../Resource/XMLElement.h
  77. engine->RegisterObjectMethod("XMLElement", "bool GetBool(const String&in) const", asMETHODPR(XMLElement, GetBool, (const String&) const, bool), asCALL_THISCALL);
  78. // BoundingBox XMLElement::GetBoundingBox() const | File: ../Resource/XMLElement.h
  79. engine->RegisterObjectMethod("XMLElement", "BoundingBox GetBoundingBox() const", asMETHODPR(XMLElement, GetBoundingBox, () const, BoundingBox), asCALL_THISCALL);
  80. // PODVector<unsigned char> XMLElement::GetBuffer(const String& name) const | File: ../Resource/XMLElement.h
  81. // Error: type "PODVector<unsigned char>" can not automatically bind
  82. // bool XMLElement::GetBuffer(const String& name, void* dest, unsigned size) const | File: ../Resource/XMLElement.h
  83. // Error: type "void*" can not automatically bind
  84. // XMLElement XMLElement::GetChild(const String& name=String::EMPTY) const | File: ../Resource/XMLElement.h
  85. engine->RegisterObjectMethod("XMLElement", "XMLElement GetChild(const String&in = String::EMPTY) const", asMETHODPR(XMLElement, GetChild, (const String&) const, XMLElement), asCALL_THISCALL);
  86. // XMLElement XMLElement::GetChild(const char* name) const | File: ../Resource/XMLElement.h
  87. // Error: type "const char*" can not automatically bind
  88. // Color XMLElement::GetColor(const String& name) const | File: ../Resource/XMLElement.h
  89. engine->RegisterObjectMethod("XMLElement", "Color GetColor(const String&in) const", asMETHODPR(XMLElement, GetColor, (const String&) const, Color), asCALL_THISCALL);
  90. // double XMLElement::GetDouble(const String& name) const | File: ../Resource/XMLElement.h
  91. engine->RegisterObjectMethod("XMLElement", "double GetDouble(const String&in) const", asMETHODPR(XMLElement, GetDouble, (const String&) const, double), asCALL_THISCALL);
  92. // XMLFile* XMLElement::GetFile() const | File: ../Resource/XMLElement.h
  93. engine->RegisterObjectMethod("XMLElement", "XMLFile@+ GetFile() const", asMETHODPR(XMLElement, GetFile, () const, XMLFile*), asCALL_THISCALL);
  94. engine->RegisterObjectMethod("XMLElement", "XMLFile@+ get_file() const", asMETHODPR(XMLElement, GetFile, () const, XMLFile*), asCALL_THISCALL);
  95. // float XMLElement::GetFloat(const String& name) const | File: ../Resource/XMLElement.h
  96. engine->RegisterObjectMethod("XMLElement", "float GetFloat(const String&in) const", asMETHODPR(XMLElement, GetFloat, (const String&) const, float), asCALL_THISCALL);
  97. // int XMLElement::GetInt(const String& name) const | File: ../Resource/XMLElement.h
  98. engine->RegisterObjectMethod("XMLElement", "int GetInt(const String&in) const", asMETHODPR(XMLElement, GetInt, (const String&) const, int), asCALL_THISCALL);
  99. // long long XMLElement::GetInt64(const String& name) const | File: ../Resource/XMLElement.h
  100. engine->RegisterObjectMethod("XMLElement", "int64 GetInt64(const String&in) const", asMETHODPR(XMLElement, GetInt64, (const String&) const, long long), asCALL_THISCALL);
  101. // IntRect XMLElement::GetIntRect(const String& name) const | File: ../Resource/XMLElement.h
  102. engine->RegisterObjectMethod("XMLElement", "IntRect GetIntRect(const String&in) const", asMETHODPR(XMLElement, GetIntRect, (const String&) const, IntRect), asCALL_THISCALL);
  103. // IntVector2 XMLElement::GetIntVector2(const String& name) const | File: ../Resource/XMLElement.h
  104. engine->RegisterObjectMethod("XMLElement", "IntVector2 GetIntVector2(const String&in) const", asMETHODPR(XMLElement, GetIntVector2, (const String&) const, IntVector2), asCALL_THISCALL);
  105. // IntVector3 XMLElement::GetIntVector3(const String& name) const | File: ../Resource/XMLElement.h
  106. engine->RegisterObjectMethod("XMLElement", "IntVector3 GetIntVector3(const String&in) const", asMETHODPR(XMLElement, GetIntVector3, (const String&) const, IntVector3), asCALL_THISCALL);
  107. // Matrix3 XMLElement::GetMatrix3(const String& name) const | File: ../Resource/XMLElement.h
  108. engine->RegisterObjectMethod("XMLElement", "Matrix3 GetMatrix3(const String&in) const", asMETHODPR(XMLElement, GetMatrix3, (const String&) const, Matrix3), asCALL_THISCALL);
  109. // Matrix3x4 XMLElement::GetMatrix3x4(const String& name) const | File: ../Resource/XMLElement.h
  110. engine->RegisterObjectMethod("XMLElement", "Matrix3x4 GetMatrix3x4(const String&in) const", asMETHODPR(XMLElement, GetMatrix3x4, (const String&) const, Matrix3x4), asCALL_THISCALL);
  111. // Matrix4 XMLElement::GetMatrix4(const String& name) const | File: ../Resource/XMLElement.h
  112. engine->RegisterObjectMethod("XMLElement", "Matrix4 GetMatrix4(const String&in) const", asMETHODPR(XMLElement, GetMatrix4, (const String&) const, Matrix4), asCALL_THISCALL);
  113. // String XMLElement::GetName() const | File: ../Resource/XMLElement.h
  114. engine->RegisterObjectMethod("XMLElement", "String GetName() const", asMETHODPR(XMLElement, GetName, () const, String), asCALL_THISCALL);
  115. engine->RegisterObjectMethod("XMLElement", "String get_name() const", asMETHODPR(XMLElement, GetName, () const, String), asCALL_THISCALL);
  116. // XMLElement XMLElement::GetNext(const String& name=String::EMPTY) const | File: ../Resource/XMLElement.h
  117. engine->RegisterObjectMethod("XMLElement", "XMLElement GetNext(const String&in = String::EMPTY) const", asMETHODPR(XMLElement, GetNext, (const String&) const, XMLElement), asCALL_THISCALL);
  118. // XMLElement XMLElement::GetNext(const char* name) const | File: ../Resource/XMLElement.h
  119. // Error: type "const char*" can not automatically bind
  120. // pugi::xml_node_struct* XMLElement::GetNode() const | File: ../Resource/XMLElement.h
  121. // Error: type "pugi::xml_node_struct*" can not automatically bind
  122. // unsigned XMLElement::GetNumAttributes() const | File: ../Resource/XMLElement.h
  123. engine->RegisterObjectMethod("XMLElement", "uint GetNumAttributes() const", asMETHODPR(XMLElement, GetNumAttributes, () const, unsigned), asCALL_THISCALL);
  124. engine->RegisterObjectMethod("XMLElement", "uint get_numAttributes() const", asMETHODPR(XMLElement, GetNumAttributes, () const, unsigned), asCALL_THISCALL);
  125. // XMLElement XMLElement::GetOrCreateChild(const String& name) | File: ../Resource/XMLElement.h
  126. engine->RegisterObjectMethod("XMLElement", "XMLElement GetOrCreateChild(const String&in)", asMETHODPR(XMLElement, GetOrCreateChild, (const String&), XMLElement), asCALL_THISCALL);
  127. // XMLElement XMLElement::GetOrCreateChild(const char* name) | File: ../Resource/XMLElement.h
  128. // Error: type "const char*" can not automatically bind
  129. // XMLElement XMLElement::GetParent() const | File: ../Resource/XMLElement.h
  130. engine->RegisterObjectMethod("XMLElement", "XMLElement GetParent() const", asMETHODPR(XMLElement, GetParent, () const, XMLElement), asCALL_THISCALL);
  131. engine->RegisterObjectMethod("XMLElement", "XMLElement get_parent() const", asMETHODPR(XMLElement, GetParent, () const, XMLElement), asCALL_THISCALL);
  132. // Quaternion XMLElement::GetQuaternion(const String& name) const | File: ../Resource/XMLElement.h
  133. engine->RegisterObjectMethod("XMLElement", "Quaternion GetQuaternion(const String&in) const", asMETHODPR(XMLElement, GetQuaternion, (const String&) const, Quaternion), asCALL_THISCALL);
  134. // Rect XMLElement::GetRect(const String& name) const | File: ../Resource/XMLElement.h
  135. engine->RegisterObjectMethod("XMLElement", "Rect GetRect(const String&in) const", asMETHODPR(XMLElement, GetRect, (const String&) const, Rect), asCALL_THISCALL);
  136. // ResourceRef XMLElement::GetResourceRef() const | File: ../Resource/XMLElement.h
  137. engine->RegisterObjectMethod("XMLElement", "ResourceRef GetResourceRef() const", asMETHODPR(XMLElement, GetResourceRef, () const, ResourceRef), asCALL_THISCALL);
  138. // ResourceRefList XMLElement::GetResourceRefList() const | File: ../Resource/XMLElement.h
  139. engine->RegisterObjectMethod("XMLElement", "ResourceRefList GetResourceRefList() const", asMETHODPR(XMLElement, GetResourceRefList, () const, ResourceRefList), asCALL_THISCALL);
  140. // StringVector XMLElement::GetStringVector() const | File: ../Resource/XMLElement.h
  141. engine->RegisterObjectMethod("XMLElement", "Array<String>@ GetStringVector() const", asFUNCTION(XMLElement_GetStringVector_void), asCALL_CDECL_OBJFIRST);
  142. // unsigned XMLElement::GetUInt(const String& name) const | File: ../Resource/XMLElement.h
  143. engine->RegisterObjectMethod("XMLElement", "uint GetUInt(const String&in) const", asMETHODPR(XMLElement, GetUInt, (const String&) const, unsigned), asCALL_THISCALL);
  144. // unsigned long long XMLElement::GetUInt64(const String& name) const | File: ../Resource/XMLElement.h
  145. engine->RegisterObjectMethod("XMLElement", "uint64 GetUInt64(const String&in) const", asMETHODPR(XMLElement, GetUInt64, (const String&) const, unsigned long long), asCALL_THISCALL);
  146. // String XMLElement::GetValue() const | File: ../Resource/XMLElement.h
  147. engine->RegisterObjectMethod("XMLElement", "String GetValue() const", asMETHODPR(XMLElement, GetValue, () const, String), asCALL_THISCALL);
  148. engine->RegisterObjectMethod("XMLElement", "String get_value() const", asMETHODPR(XMLElement, GetValue, () const, String), asCALL_THISCALL);
  149. // Variant XMLElement::GetVariant() const | File: ../Resource/XMLElement.h
  150. engine->RegisterObjectMethod("XMLElement", "Variant GetVariant() const", asMETHODPR(XMLElement, GetVariant, () const, Variant), asCALL_THISCALL);
  151. // VariantMap XMLElement::GetVariantMap() const | File: ../Resource/XMLElement.h
  152. engine->RegisterObjectMethod("XMLElement", "VariantMap GetVariantMap() const", asMETHODPR(XMLElement, GetVariantMap, () const, VariantMap), asCALL_THISCALL);
  153. // Variant XMLElement::GetVariantValue(VariantType type) const | File: ../Resource/XMLElement.h
  154. engine->RegisterObjectMethod("XMLElement", "Variant GetVariantValue(VariantType) const", asMETHODPR(XMLElement, GetVariantValue, (VariantType) const, Variant), asCALL_THISCALL);
  155. // VariantVector XMLElement::GetVariantVector() const | File: ../Resource/XMLElement.h
  156. // Error: type "VariantVector" can not automatically bind
  157. // Vector4 XMLElement::GetVector(const String& name) const | File: ../Resource/XMLElement.h
  158. engine->RegisterObjectMethod("XMLElement", "Vector4 GetVector(const String&in) const", asMETHODPR(XMLElement, GetVector, (const String&) const, Vector4), asCALL_THISCALL);
  159. // Vector2 XMLElement::GetVector2(const String& name) const | File: ../Resource/XMLElement.h
  160. engine->RegisterObjectMethod("XMLElement", "Vector2 GetVector2(const String&in) const", asMETHODPR(XMLElement, GetVector2, (const String&) const, Vector2), asCALL_THISCALL);
  161. // Vector3 XMLElement::GetVector3(const String& name) const | File: ../Resource/XMLElement.h
  162. engine->RegisterObjectMethod("XMLElement", "Vector3 GetVector3(const String&in) const", asMETHODPR(XMLElement, GetVector3, (const String&) const, Vector3), asCALL_THISCALL);
  163. // Vector4 XMLElement::GetVector4(const String& name) const | File: ../Resource/XMLElement.h
  164. engine->RegisterObjectMethod("XMLElement", "Vector4 GetVector4(const String&in) const", asMETHODPR(XMLElement, GetVector4, (const String&) const, Vector4), asCALL_THISCALL);
  165. // Variant XMLElement::GetVectorVariant(const String& name) const | File: ../Resource/XMLElement.h
  166. engine->RegisterObjectMethod("XMLElement", "Variant GetVectorVariant(const String&in) const", asMETHODPR(XMLElement, GetVectorVariant, (const String&) const, Variant), asCALL_THISCALL);
  167. // const pugi::xpath_node* XMLElement::GetXPathNode() const | File: ../Resource/XMLElement.h
  168. // Error: type "const pugi::xpath_node*" can not automatically bind
  169. // unsigned XMLElement::GetXPathResultIndex() const | File: ../Resource/XMLElement.h
  170. engine->RegisterObjectMethod("XMLElement", "uint GetXPathResultIndex() const", asMETHODPR(XMLElement, GetXPathResultIndex, () const, unsigned), asCALL_THISCALL);
  171. // const XPathResultSet* XMLElement::GetXPathResultSet() const | File: ../Resource/XMLElement.h
  172. // Error: type "const XPathResultSet*" can not automatically bind
  173. // bool XMLElement::HasAttribute(const String& name) const | File: ../Resource/XMLElement.h
  174. engine->RegisterObjectMethod("XMLElement", "bool HasAttribute(const String&in) const", asMETHODPR(XMLElement, HasAttribute, (const String&) const, bool), asCALL_THISCALL);
  175. // bool XMLElement::HasAttribute(const char* name) const | File: ../Resource/XMLElement.h
  176. // Error: type "const char*" can not automatically bind
  177. // bool XMLElement::HasChild(const String& name) const | File: ../Resource/XMLElement.h
  178. engine->RegisterObjectMethod("XMLElement", "bool HasChild(const String&in) const", asMETHODPR(XMLElement, HasChild, (const String&) const, bool), asCALL_THISCALL);
  179. // bool XMLElement::HasChild(const char* name) const | File: ../Resource/XMLElement.h
  180. // Error: type "const char*" can not automatically bind
  181. // bool XMLElement::IsNull() const | File: ../Resource/XMLElement.h
  182. engine->RegisterObjectMethod("XMLElement", "bool IsNull() const", asMETHODPR(XMLElement, IsNull, () const, bool), asCALL_THISCALL);
  183. engine->RegisterObjectMethod("XMLElement", "bool get_isNull() const", asMETHODPR(XMLElement, IsNull, () const, bool), asCALL_THISCALL);
  184. // XMLElement XMLElement::NextResult() const | File: ../Resource/XMLElement.h
  185. engine->RegisterObjectMethod("XMLElement", "XMLElement NextResult() const", asMETHODPR(XMLElement, NextResult, () const, XMLElement), asCALL_THISCALL);
  186. engine->RegisterObjectMethod("XMLElement", "XMLElement get_nextResult() const", asMETHODPR(XMLElement, NextResult, () const, XMLElement), asCALL_THISCALL);
  187. // bool XMLElement::NotNull() const | File: ../Resource/XMLElement.h
  188. engine->RegisterObjectMethod("XMLElement", "bool NotNull() const", asMETHODPR(XMLElement, NotNull, () const, bool), asCALL_THISCALL);
  189. engine->RegisterObjectMethod("XMLElement", "bool get_notNull() const", asMETHODPR(XMLElement, NotNull, () const, bool), asCALL_THISCALL);
  190. // explicit XMLElement::operator bool() const | File: ../Resource/XMLElement.h
  191. engine->RegisterObjectMethod("XMLElement", "bool opConv() const", asMETHODPR(XMLElement, operator bool, () const, bool), asCALL_THISCALL);
  192. // XMLElement& XMLElement::operator=(const XMLElement& rhs) | File: ../Resource/XMLElement.h
  193. engine->RegisterObjectMethod("XMLElement", "XMLElement& opAssign(const XMLElement&in)", asMETHODPR(XMLElement, operator=, (const XMLElement&), XMLElement&), asCALL_THISCALL);
  194. // bool XMLElement::Remove() | File: ../Resource/XMLElement.h
  195. engine->RegisterObjectMethod("XMLElement", "bool Remove()", asMETHODPR(XMLElement, Remove, (), bool), asCALL_THISCALL);
  196. // bool XMLElement::RemoveAttribute(const String& name=String::EMPTY) | File: ../Resource/XMLElement.h
  197. engine->RegisterObjectMethod("XMLElement", "bool RemoveAttribute(const String&in = String::EMPTY)", asMETHODPR(XMLElement, RemoveAttribute, (const String&), bool), asCALL_THISCALL);
  198. // bool XMLElement::RemoveAttribute(const char* name) | File: ../Resource/XMLElement.h
  199. // Error: type "const char*" can not automatically bind
  200. // bool XMLElement::RemoveChild(const XMLElement& element) | File: ../Resource/XMLElement.h
  201. engine->RegisterObjectMethod("XMLElement", "bool RemoveChild(const XMLElement&in)", asMETHODPR(XMLElement, RemoveChild, (const XMLElement&), bool), asCALL_THISCALL);
  202. // bool XMLElement::RemoveChild(const String& name) | File: ../Resource/XMLElement.h
  203. engine->RegisterObjectMethod("XMLElement", "bool RemoveChild(const String&in)", asMETHODPR(XMLElement, RemoveChild, (const String&), bool), asCALL_THISCALL);
  204. // bool XMLElement::RemoveChild(const char* name) | File: ../Resource/XMLElement.h
  205. // Error: type "const char*" can not automatically bind
  206. // bool XMLElement::RemoveChildren(const String& name=String::EMPTY) | File: ../Resource/XMLElement.h
  207. engine->RegisterObjectMethod("XMLElement", "bool RemoveChildren(const String&in = String::EMPTY)", asMETHODPR(XMLElement, RemoveChildren, (const String&), bool), asCALL_THISCALL);
  208. // bool XMLElement::RemoveChildren(const char* name) | File: ../Resource/XMLElement.h
  209. // Error: type "const char*" can not automatically bind
  210. // XPathResultSet XMLElement::Select(const String& query, pugi::xpath_variable_set* variables=nullptr) const | File: ../Resource/XMLElement.h
  211. // Error: type "pugi::xpath_variable_set*" can not automatically bind
  212. // XPathResultSet XMLElement::SelectPrepared(const XPathQuery& query) const | File: ../Resource/XMLElement.h
  213. engine->RegisterObjectMethod("XMLElement", "XPathResultSet SelectPrepared(const XPathQuery&in) const", asMETHODPR(XMLElement, SelectPrepared, (const XPathQuery&) const, XPathResultSet), asCALL_THISCALL);
  214. // XMLElement XMLElement::SelectSingle(const String& query, pugi::xpath_variable_set* variables=nullptr) const | File: ../Resource/XMLElement.h
  215. // Error: type "pugi::xpath_variable_set*" can not automatically bind
  216. // XMLElement XMLElement::SelectSinglePrepared(const XPathQuery& query) const | File: ../Resource/XMLElement.h
  217. engine->RegisterObjectMethod("XMLElement", "XMLElement SelectSinglePrepared(const XPathQuery&in) const", asMETHODPR(XMLElement, SelectSinglePrepared, (const XPathQuery&) const, XMLElement), asCALL_THISCALL);
  218. // bool XMLElement::SetAttribute(const String& name, const String& value) | File: ../Resource/XMLElement.h
  219. engine->RegisterObjectMethod("XMLElement", "bool SetAttribute(const String&in, const String&in)", asMETHODPR(XMLElement, SetAttribute, (const String&, const String&), bool), asCALL_THISCALL);
  220. // bool XMLElement::SetAttribute(const char* name, const char* value) | File: ../Resource/XMLElement.h
  221. // Error: type "const char*" can not automatically bind
  222. // bool XMLElement::SetAttribute(const String& value) | File: ../Resource/XMLElement.h
  223. engine->RegisterObjectMethod("XMLElement", "bool SetAttribute(const String&in)", asMETHODPR(XMLElement, SetAttribute, (const String&), bool), asCALL_THISCALL);
  224. // bool XMLElement::SetAttribute(const char* value) | File: ../Resource/XMLElement.h
  225. // Error: type "const char*" can not automatically bind
  226. // bool XMLElement::SetBool(const String& name, bool value) | File: ../Resource/XMLElement.h
  227. engine->RegisterObjectMethod("XMLElement", "bool SetBool(const String&in, bool)", asMETHODPR(XMLElement, SetBool, (const String&, bool), bool), asCALL_THISCALL);
  228. // bool XMLElement::SetBoundingBox(const BoundingBox& value) | File: ../Resource/XMLElement.h
  229. engine->RegisterObjectMethod("XMLElement", "bool SetBoundingBox(const BoundingBox&in)", asMETHODPR(XMLElement, SetBoundingBox, (const BoundingBox&), bool), asCALL_THISCALL);
  230. // bool XMLElement::SetBuffer(const String& name, const void* data, unsigned size) | File: ../Resource/XMLElement.h
  231. // Error: type "void*" can not automatically bind
  232. // bool XMLElement::SetBuffer(const String& name, const PODVector<unsigned char>& value) | File: ../Resource/XMLElement.h
  233. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  234. // bool XMLElement::SetColor(const String& name, const Color& value) | File: ../Resource/XMLElement.h
  235. engine->RegisterObjectMethod("XMLElement", "bool SetColor(const String&in, const Color&in)", asMETHODPR(XMLElement, SetColor, (const String&, const Color&), bool), asCALL_THISCALL);
  236. // bool XMLElement::SetDouble(const String& name, double value) | File: ../Resource/XMLElement.h
  237. engine->RegisterObjectMethod("XMLElement", "bool SetDouble(const String&in, double)", asMETHODPR(XMLElement, SetDouble, (const String&, double), bool), asCALL_THISCALL);
  238. // bool XMLElement::SetFloat(const String& name, float value) | File: ../Resource/XMLElement.h
  239. engine->RegisterObjectMethod("XMLElement", "bool SetFloat(const String&in, float)", asMETHODPR(XMLElement, SetFloat, (const String&, float), bool), asCALL_THISCALL);
  240. // bool XMLElement::SetInt(const String& name, int value) | File: ../Resource/XMLElement.h
  241. engine->RegisterObjectMethod("XMLElement", "bool SetInt(const String&in, int)", asMETHODPR(XMLElement, SetInt, (const String&, int), bool), asCALL_THISCALL);
  242. // bool XMLElement::SetInt64(const String& name, long long value) | File: ../Resource/XMLElement.h
  243. engine->RegisterObjectMethod("XMLElement", "bool SetInt64(const String&in, int64)", asMETHODPR(XMLElement, SetInt64, (const String&, long long), bool), asCALL_THISCALL);
  244. // bool XMLElement::SetIntRect(const String& name, const IntRect& value) | File: ../Resource/XMLElement.h
  245. engine->RegisterObjectMethod("XMLElement", "bool SetIntRect(const String&in, const IntRect&in)", asMETHODPR(XMLElement, SetIntRect, (const String&, const IntRect&), bool), asCALL_THISCALL);
  246. // bool XMLElement::SetIntVector2(const String& name, const IntVector2& value) | File: ../Resource/XMLElement.h
  247. engine->RegisterObjectMethod("XMLElement", "bool SetIntVector2(const String&in, const IntVector2&in)", asMETHODPR(XMLElement, SetIntVector2, (const String&, const IntVector2&), bool), asCALL_THISCALL);
  248. // bool XMLElement::SetIntVector3(const String& name, const IntVector3& value) | File: ../Resource/XMLElement.h
  249. engine->RegisterObjectMethod("XMLElement", "bool SetIntVector3(const String&in, const IntVector3&in)", asMETHODPR(XMLElement, SetIntVector3, (const String&, const IntVector3&), bool), asCALL_THISCALL);
  250. // bool XMLElement::SetMatrix3(const String& name, const Matrix3& value) | File: ../Resource/XMLElement.h
  251. engine->RegisterObjectMethod("XMLElement", "bool SetMatrix3(const String&in, const Matrix3&in)", asMETHODPR(XMLElement, SetMatrix3, (const String&, const Matrix3&), bool), asCALL_THISCALL);
  252. // bool XMLElement::SetMatrix3x4(const String& name, const Matrix3x4& value) | File: ../Resource/XMLElement.h
  253. engine->RegisterObjectMethod("XMLElement", "bool SetMatrix3x4(const String&in, const Matrix3x4&in)", asMETHODPR(XMLElement, SetMatrix3x4, (const String&, const Matrix3x4&), bool), asCALL_THISCALL);
  254. // bool XMLElement::SetMatrix4(const String& name, const Matrix4& value) | File: ../Resource/XMLElement.h
  255. engine->RegisterObjectMethod("XMLElement", "bool SetMatrix4(const String&in, const Matrix4&in)", asMETHODPR(XMLElement, SetMatrix4, (const String&, const Matrix4&), bool), asCALL_THISCALL);
  256. // bool XMLElement::SetQuaternion(const String& name, const Quaternion& value) | File: ../Resource/XMLElement.h
  257. engine->RegisterObjectMethod("XMLElement", "bool SetQuaternion(const String&in, const Quaternion&in)", asMETHODPR(XMLElement, SetQuaternion, (const String&, const Quaternion&), bool), asCALL_THISCALL);
  258. // bool XMLElement::SetRect(const String& name, const Rect& value) | File: ../Resource/XMLElement.h
  259. engine->RegisterObjectMethod("XMLElement", "bool SetRect(const String&in, const Rect&in)", asMETHODPR(XMLElement, SetRect, (const String&, const Rect&), bool), asCALL_THISCALL);
  260. // bool XMLElement::SetResourceRef(const ResourceRef& value) | File: ../Resource/XMLElement.h
  261. engine->RegisterObjectMethod("XMLElement", "bool SetResourceRef(const ResourceRef&in)", asMETHODPR(XMLElement, SetResourceRef, (const ResourceRef&), bool), asCALL_THISCALL);
  262. // bool XMLElement::SetResourceRefList(const ResourceRefList& value) | File: ../Resource/XMLElement.h
  263. engine->RegisterObjectMethod("XMLElement", "bool SetResourceRefList(const ResourceRefList&in)", asMETHODPR(XMLElement, SetResourceRefList, (const ResourceRefList&), bool), asCALL_THISCALL);
  264. // bool XMLElement::SetString(const String& name, const String& value) | File: ../Resource/XMLElement.h
  265. engine->RegisterObjectMethod("XMLElement", "bool SetString(const String&in, const String&in)", asMETHODPR(XMLElement, SetString, (const String&, const String&), bool), asCALL_THISCALL);
  266. // bool XMLElement::SetStringVector(const StringVector& value) | File: ../Resource/XMLElement.h
  267. // Error: type "const StringVector&" can not automatically bind
  268. // bool XMLElement::SetUInt(const String& name, unsigned value) | File: ../Resource/XMLElement.h
  269. engine->RegisterObjectMethod("XMLElement", "bool SetUInt(const String&in, uint)", asMETHODPR(XMLElement, SetUInt, (const String&, unsigned), bool), asCALL_THISCALL);
  270. // bool XMLElement::SetUInt64(const String& name, unsigned long long value) | File: ../Resource/XMLElement.h
  271. engine->RegisterObjectMethod("XMLElement", "bool SetUInt64(const String&in, uint64)", asMETHODPR(XMLElement, SetUInt64, (const String&, unsigned long long), bool), asCALL_THISCALL);
  272. // bool XMLElement::SetValue(const String& value) | File: ../Resource/XMLElement.h
  273. engine->RegisterObjectMethod("XMLElement", "bool SetValue(const String&in)", asMETHODPR(XMLElement, SetValue, (const String&), bool), asCALL_THISCALL);
  274. engine->RegisterObjectMethod("XMLElement", "bool set_value(const String&in)", asMETHODPR(XMLElement, SetValue, (const String&), bool), asCALL_THISCALL);
  275. // bool XMLElement::SetValue(const char* value) | File: ../Resource/XMLElement.h
  276. // Error: type "const char*" can not automatically bind
  277. // bool XMLElement::SetVariant(const Variant& value) | File: ../Resource/XMLElement.h
  278. engine->RegisterObjectMethod("XMLElement", "bool SetVariant(const Variant&in)", asMETHODPR(XMLElement, SetVariant, (const Variant&), bool), asCALL_THISCALL);
  279. // bool XMLElement::SetVariantMap(const VariantMap& value) | File: ../Resource/XMLElement.h
  280. engine->RegisterObjectMethod("XMLElement", "bool SetVariantMap(const VariantMap&in)", asMETHODPR(XMLElement, SetVariantMap, (const VariantMap&), bool), asCALL_THISCALL);
  281. // bool XMLElement::SetVariantValue(const Variant& value) | File: ../Resource/XMLElement.h
  282. engine->RegisterObjectMethod("XMLElement", "bool SetVariantValue(const Variant&in)", asMETHODPR(XMLElement, SetVariantValue, (const Variant&), bool), asCALL_THISCALL);
  283. // bool XMLElement::SetVariantVector(const VariantVector& value) | File: ../Resource/XMLElement.h
  284. // Error: type "const VariantVector&" can not automatically bind
  285. // bool XMLElement::SetVector2(const String& name, const Vector2& value) | File: ../Resource/XMLElement.h
  286. engine->RegisterObjectMethod("XMLElement", "bool SetVector2(const String&in, const Vector2&in)", asMETHODPR(XMLElement, SetVector2, (const String&, const Vector2&), bool), asCALL_THISCALL);
  287. // bool XMLElement::SetVector3(const String& name, const Vector3& value) | File: ../Resource/XMLElement.h
  288. engine->RegisterObjectMethod("XMLElement", "bool SetVector3(const String&in, const Vector3&in)", asMETHODPR(XMLElement, SetVector3, (const String&, const Vector3&), bool), asCALL_THISCALL);
  289. // bool XMLElement::SetVector4(const String& name, const Vector4& value) | File: ../Resource/XMLElement.h
  290. engine->RegisterObjectMethod("XMLElement", "bool SetVector4(const String&in, const Vector4&in)", asMETHODPR(XMLElement, SetVector4, (const String&, const Vector4&), bool), asCALL_THISCALL);
  291. // bool XMLElement::SetVectorVariant(const String& name, const Variant& value) | File: ../Resource/XMLElement.h
  292. engine->RegisterObjectMethod("XMLElement", "bool SetVectorVariant(const String&in, const Variant&in)", asMETHODPR(XMLElement, SetVectorVariant, (const String&, const Variant&), bool), asCALL_THISCALL);
  293. // XMLElement::XMLElement(XMLFile* file, pugi::xml_node_struct* node) | File: ../Resource/XMLElement.h
  294. // Error: type "pugi::xml_node_struct*" can not automatically bind
  295. // XMLElement::XMLElement(XMLFile* file, const XPathResultSet* resultSet, const pugi::xpath_node* xpathNode, unsigned xpathResultIndex) | File: ../Resource/XMLElement.h
  296. // Error: type "const XPathResultSet*" can not automatically bind
  297. // XMLElement::XMLElement(const XMLElement& rhs) | File: ../Resource/XMLElement.h
  298. engine->RegisterObjectBehaviour("XMLElement", asBEHAVE_CONSTRUCT, "void f(const XMLElement&in)", asFUNCTION(XMLElement_XMLElement_XMLElement), asCALL_CDECL_OBJFIRST);
  299. #ifdef REGISTER_MANUAL_PART_XMLElement
  300. REGISTER_MANUAL_PART_XMLElement(XMLElement, "XMLElement")
  301. #endif
  302. // void RefCounted::AddRef() | File: ../Container/RefCounted.h
  303. engine->RegisterObjectBehaviour("XMLFile", asBEHAVE_ADDREF, "void f()", asMETHODPR(XMLFile, AddRef, (), void), asCALL_THISCALL);
  304. // bool XMLFile::BeginLoad(Deserializer& source) override | File: ../Resource/XMLFile.h
  305. engine->RegisterObjectMethod("XMLFile", "bool BeginLoad(Deserializer&)", asMETHODPR(XMLFile, BeginLoad, (Deserializer&), bool), asCALL_THISCALL);
  306. // template<typename T> T* Object::Cast() | File: ../Core/Object.h
  307. // Not registered because template
  308. // template<typename T> const T* Object::Cast() const | File: ../Core/Object.h
  309. // Not registered because template
  310. // XMLElement XMLFile::CreateRoot(const String& name) | File: ../Resource/XMLFile.h
  311. engine->RegisterObjectMethod("XMLFile", "XMLElement CreateRoot(const String&in)", asMETHODPR(XMLFile, CreateRoot, (const String&), XMLElement), asCALL_THISCALL);
  312. // virtual bool Resource::EndLoad() | File: ../Resource/Resource.h
  313. engine->RegisterObjectMethod("XMLFile", "bool EndLoad()", asMETHODPR(XMLFile, EndLoad, (), bool), asCALL_THISCALL);
  314. // bool XMLFile::FromString(const String& source) | File: ../Resource/XMLFile.h
  315. engine->RegisterObjectMethod("XMLFile", "bool FromString(const String&in)", asMETHODPR(XMLFile, FromString, (const String&), bool), asCALL_THISCALL);
  316. // AsyncLoadState Resource::GetAsyncLoadState() const | File: ../Resource/Resource.h
  317. engine->RegisterObjectMethod("XMLFile", "AsyncLoadState GetAsyncLoadState() const", asMETHODPR(XMLFile, GetAsyncLoadState, () const, AsyncLoadState), asCALL_THISCALL);
  318. // bool Object::GetBlockEvents() const | File: ../Core/Object.h
  319. engine->RegisterObjectMethod("XMLFile", "bool GetBlockEvents() const", asMETHODPR(XMLFile, GetBlockEvents, () const, bool), asCALL_THISCALL);
  320. // const String& Object::GetCategory() const | File: ../Core/Object.h
  321. engine->RegisterObjectMethod("XMLFile", "const String& GetCategory() const", asMETHODPR(XMLFile, GetCategory, () const, const String&), asCALL_THISCALL);
  322. engine->RegisterObjectMethod("XMLFile", "const String& get_category() const", asMETHODPR(XMLFile, GetCategory, () const, const String&), asCALL_THISCALL);
  323. // Context* Object::GetContext() const | File: ../Core/Object.h
  324. // Error: type "Context*" can not be returned
  325. // pugi::xml_document* XMLFile::GetDocument() const | File: ../Resource/XMLFile.h
  326. // Error: type "pugi::xml_document*" can not automatically bind
  327. // VariantMap& Object::GetEventDataMap() const | File: ../Core/Object.h
  328. engine->RegisterObjectMethod("XMLFile", "VariantMap& GetEventDataMap() const", asMETHODPR(XMLFile, GetEventDataMap, () const, VariantMap&), asCALL_THISCALL);
  329. // EventHandler* Object::GetEventHandler() const | File: ../Core/Object.h
  330. // Error: type "EventHandler*" can not automatically bind
  331. // Object* Object::GetEventSender() const | File: ../Core/Object.h
  332. engine->RegisterObjectMethod("XMLFile", "Object@+ GetEventSender() const", asMETHODPR(XMLFile, GetEventSender, () const, Object*), asCALL_THISCALL);
  333. // const Variant& Object::GetGlobalVar(StringHash key) const | File: ../Core/Object.h
  334. engine->RegisterObjectMethod("XMLFile", "const Variant& GetGlobalVar(StringHash) const", asMETHODPR(XMLFile, GetGlobalVar, (StringHash) const, const Variant&), asCALL_THISCALL);
  335. engine->RegisterObjectMethod("XMLFile", "const Variant& get_globalVar(StringHash) const", asMETHODPR(XMLFile, GetGlobalVar, (StringHash) const, const Variant&), asCALL_THISCALL);
  336. // const VariantMap& Object::GetGlobalVars() const | File: ../Core/Object.h
  337. engine->RegisterObjectMethod("XMLFile", "const VariantMap& GetGlobalVars() const", asMETHODPR(XMLFile, GetGlobalVars, () const, const VariantMap&), asCALL_THISCALL);
  338. engine->RegisterObjectMethod("XMLFile", "const VariantMap& get_globalVars() const", asMETHODPR(XMLFile, GetGlobalVars, () const, const VariantMap&), asCALL_THISCALL);
  339. // unsigned Resource::GetMemoryUse() const | File: ../Resource/Resource.h
  340. engine->RegisterObjectMethod("XMLFile", "uint GetMemoryUse() const", asMETHODPR(XMLFile, GetMemoryUse, () const, unsigned), asCALL_THISCALL);
  341. engine->RegisterObjectMethod("XMLFile", "uint get_memoryUse() const", asMETHODPR(XMLFile, GetMemoryUse, () const, unsigned), asCALL_THISCALL);
  342. // const String& Resource::GetName() const | File: ../Resource/Resource.h
  343. engine->RegisterObjectMethod("XMLFile", "const String& GetName() const", asMETHODPR(XMLFile, GetName, () const, const String&), asCALL_THISCALL);
  344. engine->RegisterObjectMethod("XMLFile", "const String& get_name() const", asMETHODPR(XMLFile, GetName, () const, const String&), asCALL_THISCALL);
  345. // StringHash Resource::GetNameHash() const | File: ../Resource/Resource.h
  346. engine->RegisterObjectMethod("XMLFile", "StringHash GetNameHash() const", asMETHODPR(XMLFile, GetNameHash, () const, StringHash), asCALL_THISCALL);
  347. // XMLElement XMLFile::GetOrCreateRoot(const String& name) | File: ../Resource/XMLFile.h
  348. engine->RegisterObjectMethod("XMLFile", "XMLElement GetOrCreateRoot(const String&in)", asMETHODPR(XMLFile, GetOrCreateRoot, (const String&), XMLElement), asCALL_THISCALL);
  349. // XMLElement XMLFile::GetRoot(const String& name=String::EMPTY) | File: ../Resource/XMLFile.h
  350. engine->RegisterObjectMethod("XMLFile", "XMLElement GetRoot(const String&in = String::EMPTY)", asMETHODPR(XMLFile, GetRoot, (const String&), XMLElement), asCALL_THISCALL);
  351. // Object* Object::GetSubsystem(StringHash type) const | File: ../Core/Object.h
  352. engine->RegisterObjectMethod("XMLFile", "Object@+ GetSubsystem(StringHash) const", asMETHODPR(XMLFile, GetSubsystem, (StringHash) const, Object*), asCALL_THISCALL);
  353. // template<class T> T* Object::GetSubsystem() const | File: ../Core/Object.h
  354. // Not registered because template
  355. // virtual StringHash Object::GetType() const =0 | File: ../Core/Object.h
  356. engine->RegisterObjectMethod("XMLFile", "StringHash GetType() const", asMETHODPR(XMLFile, GetType, () const, StringHash), asCALL_THISCALL);
  357. engine->RegisterObjectMethod("XMLFile", "StringHash get_type() const", asMETHODPR(XMLFile, GetType, () const, StringHash), asCALL_THISCALL);
  358. // virtual const TypeInfo* Object::GetTypeInfo() const =0 | File: ../Core/Object.h
  359. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  360. // static const TypeInfo* Object::GetTypeInfoStatic() | File: ../Core/Object.h
  361. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  362. // virtual const String& Object::GetTypeName() const =0 | File: ../Core/Object.h
  363. engine->RegisterObjectMethod("XMLFile", "const String& GetTypeName() const", asMETHODPR(XMLFile, GetTypeName, () const, const String&), asCALL_THISCALL);
  364. engine->RegisterObjectMethod("XMLFile", "const String& get_typeName() const", asMETHODPR(XMLFile, GetTypeName, () const, const String&), asCALL_THISCALL);
  365. // unsigned Resource::GetUseTimer() | File: ../Resource/Resource.h
  366. engine->RegisterObjectMethod("XMLFile", "uint GetUseTimer()", asMETHODPR(XMLFile, GetUseTimer, (), unsigned), asCALL_THISCALL);
  367. engine->RegisterObjectMethod("XMLFile", "uint get_useTimer()", asMETHODPR(XMLFile, GetUseTimer, (), unsigned), asCALL_THISCALL);
  368. // bool Object::HasEventHandlers() const | File: ../Core/Object.h
  369. engine->RegisterObjectMethod("XMLFile", "bool HasEventHandlers() const", asMETHODPR(XMLFile, HasEventHandlers, () const, bool), asCALL_THISCALL);
  370. // bool Object::HasSubscribedToEvent(StringHash eventType) const | File: ../Core/Object.h
  371. engine->RegisterObjectMethod("XMLFile", "bool HasSubscribedToEvent(StringHash) const", asMETHODPR(XMLFile, HasSubscribedToEvent, (StringHash) const, bool), asCALL_THISCALL);
  372. // bool Object::HasSubscribedToEvent(Object* sender, StringHash eventType) const | File: ../Core/Object.h
  373. engine->RegisterObjectMethod("XMLFile", "bool HasSubscribedToEvent(Object@+, StringHash) const", asMETHODPR(XMLFile, HasSubscribedToEvent, (Object*, StringHash) const, bool), asCALL_THISCALL);
  374. // bool Object::IsInstanceOf(StringHash type) const | File: ../Core/Object.h
  375. engine->RegisterObjectMethod("XMLFile", "bool IsInstanceOf(StringHash) const", asMETHODPR(XMLFile, IsInstanceOf, (StringHash) const, bool), asCALL_THISCALL);
  376. // bool Object::IsInstanceOf(const TypeInfo* typeInfo) const | File: ../Core/Object.h
  377. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  378. // template<typename T> bool Object::IsInstanceOf() const | File: ../Core/Object.h
  379. // Not registered because template
  380. // bool Resource::Load(Deserializer& source) | File: ../Resource/Resource.h
  381. engine->RegisterObjectMethod("XMLFile", "bool Load(Deserializer&)", asMETHODPR(XMLFile, Load, (Deserializer&), bool), asCALL_THISCALL);
  382. // bool Resource::LoadFile(const String& fileName) | File: ../Resource/Resource.h
  383. engine->RegisterObjectMethod("XMLFile", "bool LoadFile(const String&in)", asMETHODPR(XMLFile, LoadFile, (const String&), bool), asCALL_THISCALL);
  384. engine->RegisterObjectMethod("XMLFile", "bool Load(const String&in)", asMETHODPR(XMLFile, LoadFile, (const String&), bool), asCALL_THISCALL);
  385. // virtual void Object::OnEvent(Object* sender, StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  386. engine->RegisterObjectMethod("XMLFile", "void OnEvent(Object@+, StringHash, VariantMap&)", asMETHODPR(XMLFile, OnEvent, (Object*, StringHash, VariantMap&), void), asCALL_THISCALL);
  387. // void XMLFile::Patch(XMLFile* patchFile) | File: ../Resource/XMLFile.h
  388. engine->RegisterObjectMethod("XMLFile", "void Patch(XMLFile@+)", asMETHODPR(XMLFile, Patch, (XMLFile*), void), asCALL_THISCALL);
  389. // void XMLFile::Patch(const XMLElement& patchElement) | File: ../Resource/XMLFile.h
  390. engine->RegisterObjectMethod("XMLFile", "void Patch(const XMLElement&in)", asMETHODPR(XMLFile, Patch, (const XMLElement&), void), asCALL_THISCALL);
  391. // RefCount* RefCounted::RefCountPtr() | File: ../Container/RefCounted.h
  392. // Error: type "RefCount*" can not automatically bind
  393. // int RefCounted::Refs() const | File: ../Container/RefCounted.h
  394. engine->RegisterObjectMethod("XMLFile", "int Refs() const", asMETHODPR(XMLFile, Refs, () const, int), asCALL_THISCALL);
  395. engine->RegisterObjectMethod("XMLFile", "int get_refs() const", asMETHODPR(XMLFile, Refs, () const, int), asCALL_THISCALL);
  396. // static void XMLFile::RegisterObject(Context* context) | File: ../Resource/XMLFile.h
  397. // Context can be used as firs parameter of constructors only
  398. // void RefCounted::ReleaseRef() | File: ../Container/RefCounted.h
  399. engine->RegisterObjectBehaviour("XMLFile", asBEHAVE_RELEASE, "void f()", asMETHODPR(XMLFile, ReleaseRef, (), void), asCALL_THISCALL);
  400. // void Resource::ResetUseTimer() | File: ../Resource/Resource.h
  401. engine->RegisterObjectMethod("XMLFile", "void ResetUseTimer()", asMETHODPR(XMLFile, ResetUseTimer, (), void), asCALL_THISCALL);
  402. // bool XMLFile::Save(Serializer& dest) const override | File: ../Resource/XMLFile.h
  403. engine->RegisterObjectMethod("XMLFile", "bool Save(Serializer&) const", asMETHODPR(XMLFile, Save, (Serializer&) const, bool), asCALL_THISCALL);
  404. // bool XMLFile::Save(Serializer& dest, const String& indentation) const | File: ../Resource/XMLFile.h
  405. engine->RegisterObjectMethod("XMLFile", "bool Save(Serializer&, const String&in) const", asMETHODPR(XMLFile, Save, (Serializer&, const String&) const, bool), asCALL_THISCALL);
  406. // virtual bool Resource::SaveFile(const String& fileName) const | File: ../Resource/Resource.h
  407. engine->RegisterObjectMethod("XMLFile", "bool SaveFile(const String&in) const", asMETHODPR(XMLFile, SaveFile, (const String&) const, bool), asCALL_THISCALL);
  408. engine->RegisterObjectMethod("XMLFile", "bool Save(const String&in) const", asMETHODPR(XMLFile, SaveFile, (const String&) const, bool), asCALL_THISCALL);
  409. // void Object::SendEvent(StringHash eventType) | File: ../Core/Object.h
  410. engine->RegisterObjectMethod("XMLFile", "void SendEvent(StringHash)", asMETHODPR(XMLFile, SendEvent, (StringHash), void), asCALL_THISCALL);
  411. // void Object::SendEvent(StringHash eventType, VariantMap& eventData) | File: ../Core/Object.h
  412. engine->RegisterObjectMethod("XMLFile", "void SendEvent(StringHash, VariantMap&)", asMETHODPR(XMLFile, SendEvent, (StringHash, VariantMap&), void), asCALL_THISCALL);
  413. // template<typename... Args> void Object::SendEvent(StringHash eventType, Args... args) | File: ../Core/Object.h
  414. // Not registered because template
  415. // void Resource::SetAsyncLoadState(AsyncLoadState newState) | File: ../Resource/Resource.h
  416. engine->RegisterObjectMethod("XMLFile", "void SetAsyncLoadState(AsyncLoadState)", asMETHODPR(XMLFile, SetAsyncLoadState, (AsyncLoadState), void), asCALL_THISCALL);
  417. // void Object::SetBlockEvents(bool block) | File: ../Core/Object.h
  418. engine->RegisterObjectMethod("XMLFile", "void SetBlockEvents(bool)", asMETHODPR(XMLFile, SetBlockEvents, (bool), void), asCALL_THISCALL);
  419. // void Object::SetGlobalVar(StringHash key, const Variant& value) | File: ../Core/Object.h
  420. engine->RegisterObjectMethod("XMLFile", "void SetGlobalVar(StringHash, const Variant&in)", asMETHODPR(XMLFile, SetGlobalVar, (StringHash, const Variant&), void), asCALL_THISCALL);
  421. engine->RegisterObjectMethod("XMLFile", "void set_globalVar(StringHash, const Variant&in)", asMETHODPR(XMLFile, SetGlobalVar, (StringHash, const Variant&), void), asCALL_THISCALL);
  422. // void Resource::SetMemoryUse(unsigned size) | File: ../Resource/Resource.h
  423. engine->RegisterObjectMethod("XMLFile", "void SetMemoryUse(uint)", asMETHODPR(XMLFile, SetMemoryUse, (unsigned), void), asCALL_THISCALL);
  424. // void Resource::SetName(const String& name) | File: ../Resource/Resource.h
  425. engine->RegisterObjectMethod("XMLFile", "void SetName(const String&in)", asMETHODPR(XMLFile, SetName, (const String&), void), asCALL_THISCALL);
  426. engine->RegisterObjectMethod("XMLFile", "void set_name(const String&in)", asMETHODPR(XMLFile, SetName, (const String&), void), asCALL_THISCALL);
  427. // void Object::SubscribeToEvent(StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  428. // Error: type "EventHandler*" can not automatically bind
  429. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, EventHandler* handler) | File: ../Core/Object.h
  430. // Error: type "EventHandler*" can not automatically bind
  431. // void Object::SubscribeToEvent(StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  432. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  433. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData=nullptr) | File: ../Core/Object.h
  434. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  435. // String XMLFile::ToString(const String& indentation="\t") const | File: ../Resource/XMLFile.h
  436. engine->RegisterObjectMethod("XMLFile", "String ToString(const String&in = \"\t\") const", asMETHODPR(XMLFile, ToString, (const String&) const, String), asCALL_THISCALL);
  437. // void Object::UnsubscribeFromAllEvents() | File: ../Core/Object.h
  438. engine->RegisterObjectMethod("XMLFile", "void UnsubscribeFromAllEvents()", asMETHODPR(XMLFile, UnsubscribeFromAllEvents, (), void), asCALL_THISCALL);
  439. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData) | File: ../Core/Object.h
  440. engine->RegisterObjectMethod("XMLFile", "void UnsubscribeFromAllEventsExcept(Array<StringHash>@+, bool)", asFUNCTION(XMLFile_UnsubscribeFromAllEventsExcept_PODVectorStringHash_bool), asCALL_CDECL_OBJFIRST);
  441. // void Object::UnsubscribeFromEvent(StringHash eventType) | File: ../Core/Object.h
  442. engine->RegisterObjectMethod("XMLFile", "void UnsubscribeFromEvent(StringHash)", asMETHODPR(XMLFile, UnsubscribeFromEvent, (StringHash), void), asCALL_THISCALL);
  443. // void Object::UnsubscribeFromEvent(Object* sender, StringHash eventType) | File: ../Core/Object.h
  444. engine->RegisterObjectMethod("XMLFile", "void UnsubscribeFromEvent(Object@+, StringHash)", asMETHODPR(XMLFile, UnsubscribeFromEvent, (Object*, StringHash), void), asCALL_THISCALL);
  445. // void Object::UnsubscribeFromEvents(Object* sender) | File: ../Core/Object.h
  446. engine->RegisterObjectMethod("XMLFile", "void UnsubscribeFromEvents(Object@+)", asMETHODPR(XMLFile, UnsubscribeFromEvents, (Object*), void), asCALL_THISCALL);
  447. // int RefCounted::WeakRefs() const | File: ../Container/RefCounted.h
  448. engine->RegisterObjectMethod("XMLFile", "int WeakRefs() const", asMETHODPR(XMLFile, WeakRefs, () const, int), asCALL_THISCALL);
  449. engine->RegisterObjectMethod("XMLFile", "int get_weakRefs() const", asMETHODPR(XMLFile, WeakRefs, () const, int), asCALL_THISCALL);
  450. // explicit XMLFile::XMLFile(Context* context) | File: ../Resource/XMLFile.h
  451. engine->RegisterObjectBehaviour("XMLFile", asBEHAVE_FACTORY, "XMLFile@+ f()", asFUNCTION(XMLFile_XMLFile_Context), asCALL_CDECL);
  452. #ifdef REGISTER_MANUAL_PART_Resource
  453. REGISTER_MANUAL_PART_Resource(XMLFile, "XMLFile")
  454. #endif
  455. #ifdef REGISTER_MANUAL_PART_Object
  456. REGISTER_MANUAL_PART_Object(XMLFile, "XMLFile")
  457. #endif
  458. #ifdef REGISTER_MANUAL_PART_RefCounted
  459. REGISTER_MANUAL_PART_RefCounted(XMLFile, "XMLFile")
  460. #endif
  461. #ifdef REGISTER_MANUAL_PART_XMLFile
  462. REGISTER_MANUAL_PART_XMLFile(XMLFile, "XMLFile")
  463. #endif
  464. RegisterSubclass<Resource, XMLFile>(engine, "Resource", "XMLFile");
  465. RegisterSubclass<Object, XMLFile>(engine, "Object", "XMLFile");
  466. RegisterSubclass<RefCounted, XMLFile>(engine, "RefCounted", "XMLFile");
  467. // void XPathQuery::Bind() | File: ../Resource/XMLElement.h
  468. engine->RegisterObjectMethod("XPathQuery", "void Bind()", asMETHODPR(XPathQuery, Bind, (), void), asCALL_THISCALL);
  469. // void XPathQuery::Clear() | File: ../Resource/XMLElement.h
  470. engine->RegisterObjectMethod("XPathQuery", "void Clear()", asMETHODPR(XPathQuery, Clear, (), void), asCALL_THISCALL);
  471. // XPathResultSet XPathQuery::Evaluate(const XMLElement& element) const | File: ../Resource/XMLElement.h
  472. engine->RegisterObjectMethod("XPathQuery", "XPathResultSet Evaluate(const XMLElement&in) const", asMETHODPR(XPathQuery, Evaluate, (const XMLElement&) const, XPathResultSet), asCALL_THISCALL);
  473. // bool XPathQuery::EvaluateToBool(const XMLElement& element) const | File: ../Resource/XMLElement.h
  474. engine->RegisterObjectMethod("XPathQuery", "bool EvaluateToBool(const XMLElement&in) const", asMETHODPR(XPathQuery, EvaluateToBool, (const XMLElement&) const, bool), asCALL_THISCALL);
  475. // float XPathQuery::EvaluateToFloat(const XMLElement& element) const | File: ../Resource/XMLElement.h
  476. engine->RegisterObjectMethod("XPathQuery", "float EvaluateToFloat(const XMLElement&in) const", asMETHODPR(XPathQuery, EvaluateToFloat, (const XMLElement&) const, float), asCALL_THISCALL);
  477. // String XPathQuery::EvaluateToString(const XMLElement& element) const | File: ../Resource/XMLElement.h
  478. engine->RegisterObjectMethod("XPathQuery", "String EvaluateToString(const XMLElement&in) const", asMETHODPR(XPathQuery, EvaluateToString, (const XMLElement&) const, String), asCALL_THISCALL);
  479. // String XPathQuery::GetQuery() const | File: ../Resource/XMLElement.h
  480. engine->RegisterObjectMethod("XPathQuery", "String GetQuery() const", asMETHODPR(XPathQuery, GetQuery, () const, String), asCALL_THISCALL);
  481. engine->RegisterObjectMethod("XPathQuery", "String get_query() const", asMETHODPR(XPathQuery, GetQuery, () const, String), asCALL_THISCALL);
  482. // pugi::xpath_query* XPathQuery::GetXPathQuery() const | File: ../Resource/XMLElement.h
  483. // Error: type "pugi::xpath_query*" can not automatically bind
  484. // pugi::xpath_variable_set* XPathQuery::GetXPathVariableSet() const | File: ../Resource/XMLElement.h
  485. // Error: type "pugi::xpath_variable_set*" can not automatically bind
  486. // bool XPathQuery::SetQuery(const String& queryString, const String& variableString=String::EMPTY, bool bind=true) | File: ../Resource/XMLElement.h
  487. engine->RegisterObjectMethod("XPathQuery", "bool SetQuery(const String&in, const String&in = String::EMPTY, bool = true)", asMETHODPR(XPathQuery, SetQuery, (const String&, const String&, bool), bool), asCALL_THISCALL);
  488. // bool XPathQuery::SetVariable(const String& name, bool value) | File: ../Resource/XMLElement.h
  489. engine->RegisterObjectMethod("XPathQuery", "bool SetVariable(const String&in, bool)", asMETHODPR(XPathQuery, SetVariable, (const String&, bool), bool), asCALL_THISCALL);
  490. // bool XPathQuery::SetVariable(const String& name, float value) | File: ../Resource/XMLElement.h
  491. engine->RegisterObjectMethod("XPathQuery", "bool SetVariable(const String&in, float)", asMETHODPR(XPathQuery, SetVariable, (const String&, float), bool), asCALL_THISCALL);
  492. // bool XPathQuery::SetVariable(const String& name, const String& value) | File: ../Resource/XMLElement.h
  493. engine->RegisterObjectMethod("XPathQuery", "bool SetVariable(const String&in, const String&in)", asMETHODPR(XPathQuery, SetVariable, (const String&, const String&), bool), asCALL_THISCALL);
  494. // bool XPathQuery::SetVariable(const char* name, const char* value) | File: ../Resource/XMLElement.h
  495. // Error: type "const char*" can not automatically bind
  496. // bool XPathQuery::SetVariable(const String& name, const XPathResultSet& value) | File: ../Resource/XMLElement.h
  497. engine->RegisterObjectMethod("XPathQuery", "bool SetVariable(const String&in, const XPathResultSet&in)", asMETHODPR(XPathQuery, SetVariable, (const String&, const XPathResultSet&), bool), asCALL_THISCALL);
  498. // explicit XPathQuery::XPathQuery(const String& queryString, const String& variableString=String::EMPTY) | File: ../Resource/XMLElement.h
  499. engine->RegisterObjectBehaviour("XPathQuery", asBEHAVE_CONSTRUCT, "void f(const String&in, const String&in = String::EMPTY)", asFUNCTION(XPathQuery_XPathQuery_String_String), asCALL_CDECL_OBJFIRST);
  500. // XPathQuery& XPathQuery::operator=(const XPathQuery&) | Possible implicitly-declared
  501. RegisterImplicitlyDeclaredAssignOperatorIfPossible<XPathQuery>(engine, "XPathQuery");
  502. #ifdef REGISTER_MANUAL_PART_XPathQuery
  503. REGISTER_MANUAL_PART_XPathQuery(XPathQuery, "XPathQuery")
  504. #endif
  505. // bool XPathResultSet::Empty() const | File: ../Resource/XMLElement.h
  506. engine->RegisterObjectMethod("XPathResultSet", "bool Empty() const", asMETHODPR(XPathResultSet, Empty, () const, bool), asCALL_THISCALL);
  507. engine->RegisterObjectMethod("XPathResultSet", "bool get_empty() const", asMETHODPR(XPathResultSet, Empty, () const, bool), asCALL_THISCALL);
  508. // XMLElement XPathResultSet::FirstResult() | File: ../Resource/XMLElement.h
  509. engine->RegisterObjectMethod("XPathResultSet", "XMLElement FirstResult()", asMETHODPR(XPathResultSet, FirstResult, (), XMLElement), asCALL_THISCALL);
  510. engine->RegisterObjectMethod("XPathResultSet", "XMLElement get_firstResult()", asMETHODPR(XPathResultSet, FirstResult, (), XMLElement), asCALL_THISCALL);
  511. // pugi::xpath_node_set* XPathResultSet::GetXPathNodeSet() const | File: ../Resource/XMLElement.h
  512. // Error: type "pugi::xpath_node_set*" can not automatically bind
  513. // XPathResultSet& XPathResultSet::operator=(const XPathResultSet& rhs) | File: ../Resource/XMLElement.h
  514. engine->RegisterObjectMethod("XPathResultSet", "XPathResultSet& opAssign(const XPathResultSet&in)", asMETHODPR(XPathResultSet, operator=, (const XPathResultSet&), XPathResultSet&), asCALL_THISCALL);
  515. // XMLElement XPathResultSet::operator[](unsigned index) const | File: ../Resource/XMLElement.h
  516. engine->RegisterObjectMethod("XPathResultSet", "XMLElement opIndex(uint) const", asMETHODPR(XPathResultSet, operator[], (unsigned) const, XMLElement), asCALL_THISCALL);
  517. // unsigned XPathResultSet::Size() const | File: ../Resource/XMLElement.h
  518. engine->RegisterObjectMethod("XPathResultSet", "uint Size() const", asMETHODPR(XPathResultSet, Size, () const, unsigned), asCALL_THISCALL);
  519. engine->RegisterObjectMethod("XPathResultSet", "uint get_size() const", asMETHODPR(XPathResultSet, Size, () const, unsigned), asCALL_THISCALL);
  520. // XPathResultSet::XPathResultSet(XMLFile* file, pugi::xpath_node_set* resultSet) | File: ../Resource/XMLElement.h
  521. // Error: type "pugi::xpath_node_set*" can not automatically bind
  522. // XPathResultSet::XPathResultSet(const XPathResultSet& rhs) | File: ../Resource/XMLElement.h
  523. engine->RegisterObjectBehaviour("XPathResultSet", asBEHAVE_CONSTRUCT, "void f(const XPathResultSet&in)", asFUNCTION(XPathResultSet_XPathResultSet_XPathResultSet), asCALL_CDECL_OBJFIRST);
  524. #ifdef REGISTER_MANUAL_PART_XPathResultSet
  525. REGISTER_MANUAL_PART_XPathResultSet(XPathResultSet, "XPathResultSet")
  526. #endif
  527. }
  528. }