static int _g_get_childObjectRefList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.childObjectRefList); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_childObjectRefList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); gen_to_be_invoked.childObjectRefList = (System.Collections.Generic.List <LuaPerfect.ObjectRef>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <LuaPerfect.ObjectRef>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { LuaPerfect.ObjectItem gen_ret = new LuaPerfect.ObjectItem(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaPerfect.ObjectItem constructor!")); }
static int _m_StaticGetValue_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { LuaPerfect.ObjectItem _objectItem = (LuaPerfect.ObjectItem)translator.GetObject(L, 1, typeof(LuaPerfect.ObjectItem)); string gen_ret = LuaPerfect.ObjectItem.StaticGetValue(_objectItem); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_InnerFormatObject_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { object _obj = translator.GetObject(L, 1, typeof(object)); bool _collectChildren = LuaAPI.lua_toboolean(L, 2); LuaPerfect.ObjectItem gen_ret = LuaPerfect.ObjectFormater.InnerFormatObject(_obj, _collectChildren); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetChildCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.GetChildCount( ); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_StaticGetChildObjectByName_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { LuaPerfect.ObjectItem _objectItem = (LuaPerfect.ObjectItem)translator.GetObject(L, 1, typeof(LuaPerfect.ObjectItem)); string _name = LuaAPI.lua_tostring(L, 2); LuaPerfect.ObjectRef gen_ret = LuaPerfect.ObjectItem.StaticGetChildObjectByName(_objectItem, _name); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetValue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); { string _value = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SetValue(_value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetChildObjectByName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); { string _name = LuaAPI.lua_tostring(L, 2); LuaPerfect.ObjectRef gen_ret = gen_to_be_invoked.GetChildObjectByName(_name); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddChild(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); { string _name = LuaAPI.lua_tostring(L, 2); object _obj = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.AddChild(_name, _obj); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }