#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 SnxxzUIBossShowModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.BossShowModel); Utils.BeginObjectRegister(type, L, translator, 0, 17, 7, 2); Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartBossShow", _m_StartBossShow); Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopBossShow", _m_StopBossShow); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ActiveBossModel", _m_ActiveBossModel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ActiveBossName", _m_ActiveBossName); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBossShowCamAnimator", _m_GetBossShowCamAnimator); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBossShowCam", _m_GetBossShowCam); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnNpcAppear", _m_OnNpcAppear); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMisstionShow", _m_SetMisstionShow); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShowActor", _m_GetShowActor); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShowActorInstance", _m_GetShowActorInstance); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInstanceId", _m_GetInstanceId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateState", _m_UpdateState); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetState", _m_GetState); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetState", _m_SetState); Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossShowPreparedEvent", _e_bossShowPreparedEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossShowCompletedEvent", _e_bossShowCompletedEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBossNameEvent", _e_OnBossNameEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "NpcID", _g_get_NpcID); Utils.RegisterFunc(L, Utils.GETTER_IDX, "showTargetList", _g_get_showTargetList); Utils.RegisterFunc(L, Utils.GETTER_IDX, "BossShowing", _g_get_BossShowing); Utils.RegisterFunc(L, Utils.GETTER_IDX, "showCamera", _g_get_showCamera); Utils.RegisterFunc(L, Utils.GETTER_IDX, "satisfyStep", _g_get_satisfyStep); Utils.RegisterFunc(L, Utils.GETTER_IDX, "reqDungeonLineId", _g_get_reqDungeonLineId); Utils.RegisterFunc(L, Utils.GETTER_IDX, "showActorDic", _g_get_showActorDic); Utils.RegisterFunc(L, Utils.SETTER_IDX, "reqDungeonLineId", _s_set_reqDungeonLineId); Utils.RegisterFunc(L, Utils.SETTER_IDX, "showActorDic", _s_set_showActorDic); 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.BossShowModel gen_ret = new Snxxz.UI.BossShowModel(); 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.BossShowModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_StartBossShow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _npcId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.StartBossShow( _npcId ); return 0; } if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { uint _npcID = LuaAPI.xlua_touint(L, 2); gen_to_be_invoked.StartBossShow( _npcID ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.BossShowModel.StartBossShow!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_StopBossShow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.StopBossShow( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ActiveBossModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { bool __active = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.ActiveBossModel( __active ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ActiveBossName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ActiveBossName( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetBossShowCamAnimator(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); UnityEngine.Transform gen_ret = gen_to_be_invoked.GetBossShowCamAnimator( _parent ); 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_GetBossShowCam(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); UnityEngine.Camera gen_ret = gen_to_be_invoked.GetBossShowCam( _parent ); 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_OnNpcAppear(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { int _npcID = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.OnNpcAppear( _npcID ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetMisstionShow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)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_TBOOLEAN == LuaAPI.lua_type(L, 3)) { int _missionID = LuaAPI.xlua_tointeger(L, 2); bool _value = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetMisstionShow( _missionID, _value ); return 0; } if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _missionID = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.SetMisstionShow( _missionID ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.BossShowModel.SetMisstionShow!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetShowActor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { int _npcID = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.List gen_ret = gen_to_be_invoked.GetShowActor( _npcID ); 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_GetShowActorInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { int __instance = LuaAPI.xlua_tointeger(L, 2); ShowActor gen_ret = gen_to_be_invoked.GetShowActorInstance( __instance ); 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_GetInstanceId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.GetInstanceId( ); 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_UpdateState(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { uint[] __states = (uint[])translator.GetObject(L, 2, typeof(uint[])); gen_to_be_invoked.UpdateState( __states ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetState(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); { Snxxz.UI.BossShowModel.DungeonShowType __type;translator.Get(L, 2, out __type); bool gen_ret = gen_to_be_invoked.GetState( __type ); LuaAPI.lua_pushboolean(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_SetState(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { Snxxz.UI.BossShowModel.DungeonShowType __type;translator.Get(L, 2, out __type); bool __state = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetState( __type, __state ); return 0; } if(gen_param_count == 2&& translator.Assignable(L, 2)) { Snxxz.UI.BossShowModel.DungeonShowType __type;translator.Get(L, 2, out __type); gen_to_be_invoked.SetState( __type ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.BossShowModel.SetState!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_NpcID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.NpcID); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_showTargetList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.showTargetList); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_BossShowing(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.BossShowing); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_showCamera(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.showCamera); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_satisfyStep(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.satisfyStep); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_reqDungeonLineId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.reqDungeonLineId); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_showActorDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.showActorDic); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_reqDungeonLineId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.reqDungeonLineId = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_showActorDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.showActorDic = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary>)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_bossShowPreparedEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)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.bossShowPreparedEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.bossShowPreparedEvent -= 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.BossShowModel.bossShowPreparedEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_bossShowCompletedEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)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.bossShowCompletedEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.bossShowCompletedEvent -= 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.BossShowModel.bossShowCompletedEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_OnBossNameEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.BossShowModel gen_to_be_invoked = (Snxxz.UI.BossShowModel)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.OnBossNameEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.OnBossNameEvent -= 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.BossShowModel.OnBossNameEvent!"); return 0; } } }