|
|
@@ -481,6 +481,7 @@ static XMLElement XMLFileGetRootDefault(XMLFile* ptr)
|
|
|
|
|
|
static void RegisterXMLFile(asIScriptEngine* engine)
|
|
|
{
|
|
|
+ engine->RegisterObjectMethod("XMLFile", "bool FromString(const String&in)", asMETHOD(XMLFile, FromString), asCALL_THISCALL);
|
|
|
engine->RegisterObjectMethod("XMLFile", "XMLElement CreateRoot(const String&in)", asMETHOD(XMLFile, CreateRoot), asCALL_THISCALL);
|
|
|
engine->RegisterObjectMethod("XMLFile", "XMLElement GetRoot(const String&in name = String())", asMETHOD(XMLFile, GetRoot), asCALL_THISCALL);
|
|
|
engine->RegisterObjectMethod("XMLFile", "XMLElement get_root()", asFUNCTION(XMLFileGetRootDefault), asCALL_CDECL_OBJLAST);
|