static int _s_set_UpdateWithRawActor(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ClientModel __cl_gen_to_be_invoked = (xc.ClientModel)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.UpdateWithRawActor = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_RawUID(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ClientModel __cl_gen_to_be_invoked = (xc.ClientModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.RawUID); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.ClientModel __cl_gen_ret = new xc.ClientModel(); translator.Push(L, __cl_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 xc.ClientModel constructor!")); }
static int _m_AfterCreate(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ClientModel __cl_gen_to_be_invoked = (xc.ClientModel)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.AfterCreate( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_IsClientModel(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ClientModel __cl_gen_to_be_invoked = (xc.ClientModel)translator.FastGetCSObj(L, 1); try { { bool __cl_gen_ret = __cl_gen_to_be_invoked.IsClientModel( ); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_CreateClientModelByClone_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { Actor actor = (Actor)translator.GetObject(L, 1, typeof(Actor)); System.Action <Actor> actionAfterLoad = translator.GetDelegate <System.Action <Actor> >(L, 2); xc.ClientModel __cl_gen_ret = xc.ClientModel.CreateClientModelByClone(actor, actionAfterLoad); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_CreateClientModel_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) { uint type_id = LuaAPI.xlua_touint(L, 1); uint uid = LuaAPI.xlua_touint(L, 2); System.Collections.Generic.List <uint> modleIdLst = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> fashions = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>)); System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6); bool updateWithRawActor = LuaAPI.lua_toboolean(L, 7); bool isUIModel = LuaAPI.lua_toboolean(L, 8); xc.ClientModel __cl_gen_ret = xc.ClientModel.CreateClientModel(type_id, uid, modleIdLst, fashions, suit_effects, cbResLoad, updateWithRawActor, isUIModel); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) { uint type_id = LuaAPI.xlua_touint(L, 1); uint uid = LuaAPI.xlua_touint(L, 2); System.Collections.Generic.List <uint> modleIdLst = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> fashions = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>)); System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6); bool updateWithRawActor = LuaAPI.lua_toboolean(L, 7); xc.ClientModel __cl_gen_ret = xc.ClientModel.CreateClientModel(type_id, uid, modleIdLst, fashions, suit_effects, cbResLoad, updateWithRawActor); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5) && translator.Assignable <System.Action <Actor> >(L, 6)) { uint type_id = LuaAPI.xlua_touint(L, 1); uint uid = LuaAPI.xlua_touint(L, 2); System.Collections.Generic.List <uint> modleIdLst = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> fashions = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>)); System.Action <Actor> cbResLoad = translator.GetDelegate <System.Action <Actor> >(L, 6); xc.ClientModel __cl_gen_ret = xc.ClientModel.CreateClientModel(type_id, uid, modleIdLst, fashions, suit_effects, cbResLoad); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 4) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 5)) { uint type_id = LuaAPI.xlua_touint(L, 1); uint uid = LuaAPI.xlua_touint(L, 2); System.Collections.Generic.List <uint> modleIdLst = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> fashions = (System.Collections.Generic.List <uint>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <uint>)); System.Collections.Generic.List <uint> suit_effects = (System.Collections.Generic.List <uint>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <uint>)); xc.ClientModel __cl_gen_ret = xc.ClientModel.CreateClientModel(type_id, uid, modleIdLst, fashions, suit_effects); translator.Push(L, __cl_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 xc.ClientModel.CreateClientModel!")); }