MCPcopy Create free account
hub / github.com/SOUI2/soui / ExpLua_SObject

Function ExpLua_SObject

components/ScriptModule-LUA/src/exports/exp_object.h:8–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8BOOL ExpLua_SObject(lua_State *L)
9{
10 try{
11 lua_tinker::class_add<IObject>(L,"IObject");
12 lua_tinker::class_def<IObject>(L,"IsClass",&IObject::IsClass);
13 lua_tinker::class_def<IObject>(L,"GetObjectClass",&IObject::GetObjectClass);
14 lua_tinker::class_def<IObject>(L,"InitFromXml",&IObject::InitFromXml);
15 lua_tinker::class_def<IObject>(L,"SetAttribute",(HRESULT (IObject::*)(const char *, const char *, BOOL))&IObject::SetAttribute);
16 lua_tinker::class_def<IObject>(L,"SetAttributeA",(HRESULT (IObject::*)(const SStringA &, const SStringA &, BOOL))&IObject::SetAttribute);
17 lua_tinker::class_def<IObject>(L,"SetAttributeW",(HRESULT (IObject::*)(const SStringW &, const SStringW &, BOOL))&IObject::SetAttribute);
18 lua_tinker::class_def<IObject>(L,"GetID",&IObject::GetID);
19 lua_tinker::class_def<IObject>(L,"GetName",&IObject::GetName);
20 lua_tinker::def(L,"SetObjAttr",SetObjAttr);
21 return TRUE;
22 }catch(...)
23 {
24 return FALSE;
25 }
26}

Callers 1

SOUI_Export_LuaFunction · 0.85

Calls 1

defFunction · 0.85

Tested by

no test coverage detected