#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 SnxxzUIFBHelpPointExchageModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.FBHelpPointExchageModel); Utils.BeginObjectRegister(type, L, translator, 0, 11, 7, 1); 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, "SetLocalSaveData", _m_SetLocalSaveData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearShopDayLocalSave", _m_ClearShopDayLocalSave); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHelpPointShop", _m_AddHelpPointShop); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHelpPointShop", _m_RemoveHelpPointShop); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNextHelpPointShop", _m_GetNextHelpPointShop); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAlreadPush", _m_IsAlreadPush); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateHelpPointShopEvent", _e_UpdateHelpPointShopEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "todayShoplist", _g_get_todayShoplist); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifeShoplist", _g_get_lifeShoplist); Utils.RegisterFunc(L, Utils.GETTER_IDX, "shopDayLocalSave", _g_get_shopDayLocalSave); Utils.RegisterFunc(L, Utils.GETTER_IDX, "shopLifeLocalSave", _g_get_shopLifeLocalSave); Utils.RegisterFunc(L, Utils.GETTER_IDX, "curDayLocalSave", _g_get_curDayLocalSave); Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentShopId", _g_get_currentShopId); Utils.RegisterFunc(L, Utils.GETTER_IDX, "helpPointShoplist", _g_get_helpPointShoplist); Utils.RegisterFunc(L, Utils.SETTER_IDX, "helpPointShoplist", _s_set_helpPointShoplist); 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.FBHelpPointExchageModel gen_ret = new Snxxz.UI.FBHelpPointExchageModel(); 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.FBHelpPointExchageModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)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.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)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.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)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.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)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_SetLocalSaveData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); { int _type = LuaAPI.xlua_tointeger(L, 2); int _shopId = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.SetLocalSaveData( _type, _shopId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ClearShopDayLocalSave(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ClearShopDayLocalSave( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddHelpPointShop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); { int _shopId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.AddHelpPointShop( _shopId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveHelpPointShop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); { int _shopId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.RemoveHelpPointShop( _shopId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetNextHelpPointShop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); { int _shopId = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.GetNextHelpPointShop( _shopId ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsAlreadPush(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); { int _shopId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsAlreadPush( _shopId ); 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 _g_get_todayShoplist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.todayShoplist); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lifeShoplist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.lifeShoplist); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_shopDayLocalSave(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.shopDayLocalSave); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_shopLifeLocalSave(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.shopLifeLocalSave); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_curDayLocalSave(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.curDayLocalSave); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_currentShopId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentShopId); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_helpPointShoplist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.helpPointShoplist); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_helpPointShoplist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.helpPointShoplist = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateHelpPointShopEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.FBHelpPointExchageModel gen_to_be_invoked = (Snxxz.UI.FBHelpPointExchageModel)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.UpdateHelpPointShopEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateHelpPointShopEvent -= 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.FBHelpPointExchageModel.UpdateHelpPointShopEvent!"); return 0; } } }