#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 SnxxzUIStoryMissionsModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.StoryMissionsModel); Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 4); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TaskMain", _m_TaskMain); Utils.RegisterFunc(L, Utils.METHOD_IDX, "StoryMissionStateInfo", _m_StoryMissionStateInfo); Utils.RegisterFunc(L, Utils.GETTER_IDX, "StoryMissionsDic", _g_get_StoryMissionsDic); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TaskCfgDict", _g_get_TaskCfgDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TaskMainDic", _g_get_TaskMainDic); Utils.RegisterFunc(L, Utils.GETTER_IDX, "taskListConfig", _g_get_taskListConfig); Utils.RegisterFunc(L, Utils.SETTER_IDX, "StoryMissionsDic", _s_set_StoryMissionsDic); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TaskCfgDict", _s_set_TaskCfgDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TaskMainDic", _s_set_TaskMainDic); Utils.RegisterFunc(L, Utils.SETTER_IDX, "taskListConfig", _s_set_taskListConfig); 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.StoryMissionsModel gen_ret = new Snxxz.UI.StoryMissionsModel(); 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.StoryMissionsModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)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_OnBeforePlayerDataInitialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)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_UnInit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)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_TaskMain(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.TaskMain( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_StoryMissionStateInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); { HB104_tagMCStoryMissionStateInfo _vNetData = (HB104_tagMCStoryMissionStateInfo)translator.GetObject(L, 2, typeof(HB104_tagMCStoryMissionStateInfo)); gen_to_be_invoked.StoryMissionStateInfo( _vNetData ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_StoryMissionsDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.StoryMissionsDic); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TaskCfgDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TaskCfgDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TaskMainDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TaskMainDic); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_taskListConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.taskListConfig); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_StoryMissionsDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.StoryMissionsDic = (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 _s_set_TaskCfgDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.TaskCfgDict = (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 _s_set_TaskMainDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.TaskMainDic = (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 _s_set_taskListConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.StoryMissionsModel gen_to_be_invoked = (Snxxz.UI.StoryMissionsModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.taskListConfig = (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; } } }