#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class SnxxzUIRoleParticularModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.RoleParticularModel); Utils.BeginObjectRegister(type, L, translator, 0, 25, 3, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemData", _m_GetItemData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetViewPlayerData", _m_GetViewPlayerData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewRoleEquip", _m_ViewRoleEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewRoleFightPower", _m_ViewRoleFightPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewKingFairyLeader", _m_ViewKingFairyLeader); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewFairyFeastTransmit", _m_ViewFairyFeastTransmit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewFairyCrossServerOneVsOne", _m_ViewFairyCrossServerOneVsOne); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewCrossServerPlayerEquip", _m_ViewCrossServerPlayerEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewCrossPlayerFightPower", _m_ViewCrossPlayerFightPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRevRoleEquip", _m_OnRevRoleEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRevRoleFuncPower", _m_OnRevRoleFuncPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFuncFightPower", _m_GetFuncFightPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorseFightPower", _m_GetHorseFightPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorseSkillFightPower", _m_GetHorseSkillFightPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorseProperty", _m_GetHorseProperty); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQualityDisplay", _m_GetQualityDisplay); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetFightPower", _m_GetPetFightPower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetAtkProperty", _m_GetPetAtkProperty); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetAtkSkillProperty", _m_GetPetAtkSkillProperty); Utils.RegisterFunc(L, Utils.METHOD_IDX, "PowerUpdate", _e_PowerUpdate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePlayerParticularEvent", _e_UpdatePlayerParticularEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "viewPlayerUpdate", _e_viewPlayerUpdate); Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewPlayer", _g_get_viewPlayer); Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewPlayerType", _g_get_viewPlayerType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewPetStone", _g_get_viewPetStone); Utils.RegisterFunc(L, Utils.SETTER_IDX, "viewPetStone", _s_set_viewPetStone); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 1) { Snxxz.UI.RoleParticularModel gen_ret = new Snxxz.UI.RoleParticularModel(); 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 Snxxz.UI.RoleParticularModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Init( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UnInit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UnInit( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnBeforePlayerDataInitialize( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetItemData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { RoleEquipType _type;translator.Get(L, 2, out _type); Snxxz.UI.RoleParticularModel.ItemData gen_ret = gen_to_be_invoked.GetItemData( _type ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetViewPlayerData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int _player = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.RoleParticularModel.ViewPlayerData gen_ret = gen_to_be_invoked.GetViewPlayerData( _player ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewRoleEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int _playerID = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewRoleEquip( _playerID ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewRoleFightPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int _playerID = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewRoleFightPower( _playerID ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewKingFairyLeader(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int __playerId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewKingFairyLeader( __playerId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewFairyFeastTransmit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int __playerId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewFairyFeastTransmit( __playerId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewFairyCrossServerOneVsOne(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int __playerId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewFairyCrossServerOneVsOne( __playerId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewCrossServerPlayerEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int __playerId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewCrossServerPlayerEquip( __playerId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ViewCrossPlayerFightPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int __playerId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.ViewCrossPlayerFightPower( __playerId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnRevRoleEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { HA705_tagSCQueryPlayerCacheResult _package = (HA705_tagSCQueryPlayerCacheResult)translator.GetObject(L, 2, typeof(HA705_tagSCQueryPlayerCacheResult)); gen_to_be_invoked.OnRevRoleEquip( _package ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnRevRoleFuncPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { HA3A1_tagMCModuleFightPowerInfo _package = (HA3A1_tagMCModuleFightPowerInfo)translator.GetObject(L, 2, typeof(HA3A1_tagMCModuleFightPowerInfo)); gen_to_be_invoked.OnRevRoleFuncPower( _package ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetFuncFightPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int _type = LuaAPI.xlua_tointeger(L, 2); ulong gen_ret = gen_to_be_invoked.GetFuncFightPower( _type ); LuaAPI.lua_pushuint64(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetHorseFightPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int __id = LuaAPI.xlua_tointeger(L, 2); int _lv = LuaAPI.xlua_tointeger(L, 3); int gen_ret = gen_to_be_invoked.GetHorseFightPower( __id, _lv ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.List _horses = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); int gen_ret = gen_to_be_invoked.GetHorseFightPower( _horses ); LuaAPI.xlua_pushinteger(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 Snxxz.UI.RoleParticularModel.GetHorseFightPower!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetHorseSkillFightPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int __id = LuaAPI.xlua_tointeger(L, 2); int _lv = LuaAPI.xlua_tointeger(L, 3); int gen_ret = gen_to_be_invoked.GetHorseSkillFightPower( __id, _lv ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetHorseProperty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) { int __id = LuaAPI.xlua_tointeger(L, 2); int _lv = LuaAPI.xlua_tointeger(L, 3); System.Collections.Generic.Dictionary _propertyDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.GetHorseProperty( __id, _lv, ref _propertyDict ); translator.Push(L, _propertyDict); return 1; } if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)) { System.Collections.Generic.List _horses = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); System.Collections.Generic.Dictionary _propertyDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.GetHorseProperty( _horses, ref _propertyDict ); translator.Push(L, _propertyDict); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RoleParticularModel.GetHorseProperty!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetQualityDisplay(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int _quality = LuaAPI.xlua_tointeger(L, 2); string gen_ret = gen_to_be_invoked.GetQualityDisplay( _quality ); LuaAPI.lua_pushstring(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetPetFightPower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _id = LuaAPI.xlua_tointeger(L, 2); int _lv = LuaAPI.xlua_tointeger(L, 3); int gen_ret = gen_to_be_invoked.GetPetFightPower( _id, _lv ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.List _pets = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); int gen_ret = gen_to_be_invoked.GetPetFightPower( _pets ); LuaAPI.xlua_pushinteger(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 Snxxz.UI.RoleParticularModel.GetPetFightPower!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetPetAtkProperty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable>(L, 2)) { System.Collections.Generic.List _pets = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); int gen_ret = gen_to_be_invoked.GetPetAtkProperty( _pets ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) { int _id = LuaAPI.xlua_tointeger(L, 2); int _lv = LuaAPI.xlua_tointeger(L, 3); System.Collections.Generic.List _pets = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); int gen_ret = gen_to_be_invoked.GetPetAtkProperty( _id, _lv, _pets ); LuaAPI.xlua_pushinteger(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 Snxxz.UI.RoleParticularModel.GetPetAtkProperty!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetPetAtkSkillProperty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); { int _skillId = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.List _pets = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); int gen_ret = gen_to_be_invoked.GetPetAtkSkillProperty( _skillId, _pets ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_viewPlayer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.viewPlayer); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_viewPlayerType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.viewPlayerType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_viewPetStone(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.viewPetStone); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_viewPetStone(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.viewPetStone = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_PowerUpdate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.PowerUpdate += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.PowerUpdate -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RoleParticularModel.PowerUpdate!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdatePlayerParticularEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.UpdatePlayerParticularEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdatePlayerParticularEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RoleParticularModel.UpdatePlayerParticularEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_viewPlayerUpdate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.viewPlayerUpdate += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.viewPlayerUpdate -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RoleParticularModel.viewPlayerUpdate!"); return 0; } } }