#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 SnxxzUIMysticalPurchaseModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.MysticalPurchaseModel); Utils.BeginObjectRegister(type, L, translator, 0, 14, 5, 2); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSellTimeEnd", _m_UpdateSellTimeEnd); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCurSellShop", _m_TryGetCurSellShop); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareBySellTime", _m_CompareBySellTime); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMysticalShopInfo", _m_UpdateMysticalShopInfo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMysticalShop", _m_GetMysticalShop); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedpoint", _m_UpdateRedpoint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseRedPoint", _m_CloseRedPoint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMysticalShopEvent", _e_UpdateMysticalShopEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateNewMysticalEvent", _e_UpdateNewMysticalEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOpenPrompting", _g_get_isOpenPrompting); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); Utils.RegisterFunc(L, Utils.GETTER_IDX, "mysticalRedpoint", _g_get_mysticalRedpoint); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isOpenPrompting", _s_set_isOpenPrompting); Utils.RegisterFunc(L, Utils.SETTER_IDX, "mysticalRedpoint", _s_set_mysticalRedpoint); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MysticalRedKey", Snxxz.UI.MysticalPurchaseModel.MysticalRedKey); 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.MysticalPurchaseModel gen_ret = new Snxxz.UI.MysticalPurchaseModel(); 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.MysticalPurchaseModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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_OnPlayerLoginOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnPlayerLoginOk( ); 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.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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_UpdateSellTimeEnd(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateSellTimeEnd( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetCurSellShop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List _mysticals; bool gen_ret = gen_to_be_invoked.TryGetCurSellShop( out _mysticals ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _mysticals); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CompareBySellTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { Snxxz.UI.MysticalPurchaseModel.MysticalShop _start = (Snxxz.UI.MysticalPurchaseModel.MysticalShop)translator.GetObject(L, 2, typeof(Snxxz.UI.MysticalPurchaseModel.MysticalShop)); Snxxz.UI.MysticalPurchaseModel.MysticalShop _end = (Snxxz.UI.MysticalPurchaseModel.MysticalShop)translator.GetObject(L, 3, typeof(Snxxz.UI.MysticalPurchaseModel.MysticalShop)); int gen_ret = gen_to_be_invoked.CompareBySellTime( _start, _end ); 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_UpdateMysticalShopInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { HA806_tagMCMysticalShopTimeInfo _info = (HA806_tagMCMysticalShopTimeInfo)translator.GetObject(L, 2, typeof(HA806_tagMCMysticalShopTimeInfo)); gen_to_be_invoked.UpdateMysticalShopInfo( _info ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetMysticalShop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { int _shopId = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.MysticalPurchaseModel.MysticalShop gen_ret = gen_to_be_invoked.GetMysticalShop( _shopId ); 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_UpdateRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateRedpoint( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CloseRedPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.CloseRedPoint( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isOpenPrompting(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOpenPrompting); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_IsOpen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOpen); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_IsAdvance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAdvance); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_priorityOpen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.priorityOpen); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_mysticalRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.mysticalRedpoint); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_isOpenPrompting(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isOpenPrompting = 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 _s_set_mysticalRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.mysticalRedpoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateMysticalShopEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdateMysticalShopEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateMysticalShopEvent -= 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.MysticalPurchaseModel.UpdateMysticalShopEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_onStateUpate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.onStateUpate += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.onStateUpate -= 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.MysticalPurchaseModel.onStateUpate!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateNewMysticalEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdateNewMysticalEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateNewMysticalEvent -= 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.MysticalPurchaseModel.UpdateNewMysticalEvent!"); return 0; } } }