#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 SnxxzUIWishingPoolModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.WishingPoolModel); Utils.BeginObjectRegister(type, L, translator, 0, 30, 17, 7); 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, "GetOperationWishing", _m_GetOperationWishing); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFreeWishCoolTime", _m_TryGetFreeWishCoolTime); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBestItem", _m_IsBestItem); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHandMovePos", _m_SetHandMovePos); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetDragData", _m_ResetDragData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParseConfig", _m_ParseConfig); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWishingWellPlayerInfo", _m_SetWishingWellPlayerInfo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWishingPrice", _m_GetWishingPrice); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWishingResultInfo", _m_SetWishingResultInfo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWishingPoolData", _m_SetWishingPoolData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemovetWishingPoolData", _m_RemovetWishingPoolData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWishingData", _m_SetWishingData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWishingAwardData", _m_SetWishingAwardData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBetterItem", _m_IsBetterItem); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetPoolDataByIndex", _m_TryGetPoolDataByIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetWishDataByIndex", _m_TryGetWishDataByIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendRefreshPoolInfo", _m_SendRefreshPoolInfo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendGetAwardQuest", _m_SendGetAwardQuest); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendRefreshWishInfo", _m_SendRefreshWishInfo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWishRedpoint", _m_SetWishRedpoint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetPoolData", _m_ResetPoolData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWishingDataEvent", _e_UpdateWishingDataEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePoolDataEvent", _e_UpdatePoolDataEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWishAwardEvent", _e_UpdateWishAwardEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateHandMoveEvent", _e_UpdateHandMoveEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen); Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); Utils.RegisterFunc(L, Utils.GETTER_IDX, "handStartIndex", _g_get_handStartIndex); Utils.RegisterFunc(L, Utils.GETTER_IDX, "handEndIndex", _g_get_handEndIndex); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isClick", _g_get_isClick); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDraging", _g_get_isDraging); Utils.RegisterFunc(L, Utils.GETTER_IDX, "dragIndex", _g_get_dragIndex); Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeRefreshCoolTime", _g_get_freeRefreshCoolTime); Utils.RegisterFunc(L, Utils.GETTER_IDX, "wishingPriceFormula", _g_get_wishingPriceFormula); Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeStartTime", _g_get_freeStartTime); Utils.RegisterFunc(L, Utils.GETTER_IDX, "alreadyWishNum", _g_get_alreadyWishNum); Utils.RegisterFunc(L, Utils.GETTER_IDX, "wishingPrice", _g_get_wishingPrice); Utils.RegisterFunc(L, Utils.GETTER_IDX, "wishingAwardDict", _g_get_wishingAwardDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "wishPoolRedpoint", _g_get_wishPoolRedpoint); Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeWishRedpoint", _g_get_freeWishRedpoint); Utils.RegisterFunc(L, Utils.GETTER_IDX, "wishPointlist", _g_get_wishPointlist); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isClick", _s_set_isClick); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDraging", _s_set_isDraging); Utils.RegisterFunc(L, Utils.SETTER_IDX, "dragIndex", _s_set_dragIndex); Utils.RegisterFunc(L, Utils.SETTER_IDX, "wishingAwardDict", _s_set_wishingAwardDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "wishPoolRedpoint", _s_set_wishPoolRedpoint); Utils.RegisterFunc(L, Utils.SETTER_IDX, "freeWishRedpoint", _s_set_freeWishRedpoint); Utils.RegisterFunc(L, Utils.SETTER_IDX, "wishPointlist", _s_set_wishPointlist); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WishRedKey", Snxxz.UI.WishingPoolModel.WishRedKey); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FREEWISH_REDKEY", Snxxz.UI.WishingPoolModel.FREEWISH_REDKEY); 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.WishingPoolModel gen_ret = new Snxxz.UI.WishingPoolModel(); 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.WishingPoolModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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_GetOperationWishing(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { Snxxz.UI.OperationWishingWellInfo gen_ret = gen_to_be_invoked.GetOperationWishing( ); 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_TryGetFreeWishCoolTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _second; bool gen_ret = gen_to_be_invoked.TryGetFreeWishCoolTime( out _second ); LuaAPI.lua_pushboolean(L, gen_ret); LuaAPI.xlua_pushinteger(L, _second); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsBestItem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { bool gen_ret = gen_to_be_invoked.IsBestItem( ); 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_SetHandMovePos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _wishIndex = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.SetHandMovePos( _wishIndex ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResetDragData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ResetDragData( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ParseConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ParseConfig( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetWishingWellPlayerInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { HAA1A_tagMCActWishingWellPlayerInfo _wishInfo = (HAA1A_tagMCActWishingWellPlayerInfo)translator.GetObject(L, 2, typeof(HAA1A_tagMCActWishingWellPlayerInfo)); gen_to_be_invoked.SetWishingWellPlayerInfo( _wishInfo ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetWishingPrice(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _wishNum = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetWishingPrice( _wishNum ); 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_SetWishingResultInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { HAA1B_tagMCActWishingDragResult _result = (HAA1B_tagMCActWishingDragResult)translator.GetObject(L, 2, typeof(HAA1B_tagMCActWishingDragResult)); gen_to_be_invoked.SetWishingResultInfo( _result ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetWishingPoolData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.WishingPoolModel.WishingWellItem _wellItem = (Snxxz.UI.WishingPoolModel.WishingWellItem)translator.GetObject(L, 3, typeof(Snxxz.UI.WishingPoolModel.WishingWellItem)); gen_to_be_invoked.SetWishingPoolData( _index, _wellItem ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemovetWishingPoolData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.RemovetWishingPoolData( _index ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetWishingData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.WishingPoolModel.WishingWellItem _wellItem = (Snxxz.UI.WishingPoolModel.WishingWellItem)translator.GetObject(L, 3, typeof(Snxxz.UI.WishingPoolModel.WishingWellItem)); gen_to_be_invoked.SetWishingData( _index, _wellItem ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetWishingAwardData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.WishingPoolModel.WishingWellItem _wellItem = (Snxxz.UI.WishingPoolModel.WishingWellItem)translator.GetObject(L, 3, typeof(Snxxz.UI.WishingPoolModel.WishingWellItem)); gen_to_be_invoked.SetWishingAwardData( _index, _wellItem ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsBetterItem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { bool gen_ret = gen_to_be_invoked.IsBetterItem( ); 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_TryGetPoolDataByIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.WishingPoolModel.WishingWellItem _wellItem; bool gen_ret = gen_to_be_invoked.TryGetPoolDataByIndex( _index, out _wellItem ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _wellItem); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetWishDataByIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.WishingPoolModel.WishingWellItem _wellItem; bool gen_ret = gen_to_be_invoked.TryGetWishDataByIndex( _index, out _wellItem ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _wellItem); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendRefreshPoolInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _refreshType = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.SendRefreshPoolInfo( _refreshType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendGetAwardQuest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.SendGetAwardQuest( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendRefreshWishInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { int _poolIndex = LuaAPI.xlua_tointeger(L, 2); int _wishIndex = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.SendRefreshWishInfo( _poolIndex, _wishIndex ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetWishRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.SetWishRedpoint( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResetPoolData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ResetPoolData( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_IsOpen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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_priorityOpen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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_IsAdvance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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_handStartIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.handStartIndex); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_handEndIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.handEndIndex); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isClick(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isClick); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isDraging(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDraging); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_dragIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dragIndex); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_freeRefreshCoolTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.freeRefreshCoolTime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_wishingPriceFormula(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.wishingPriceFormula); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_freeStartTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.freeStartTime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_alreadyWishNum(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.alreadyWishNum); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_wishingPrice(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.wishingPrice); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_wishingAwardDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.wishingAwardDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_wishPoolRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.wishPoolRedpoint); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_freeWishRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.freeWishRedpoint); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_wishPointlist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.wishPointlist); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_isClick(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isClick = 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_isDraging(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isDraging = 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_dragIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.dragIndex = 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_wishingAwardDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.wishingAwardDict = (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_wishPoolRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.wishPoolRedpoint = (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 _s_set_freeWishRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.freeWishRedpoint = (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 _s_set_wishPointlist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.wishPointlist = (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_UpdateWishingDataEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.UpdateWishingDataEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateWishingDataEvent -= 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.WishingPoolModel.UpdateWishingDataEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdatePoolDataEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.UpdatePoolDataEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdatePoolDataEvent -= 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.WishingPoolModel.UpdatePoolDataEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateWishAwardEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.UpdateWishAwardEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateWishAwardEvent -= 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.WishingPoolModel.UpdateWishAwardEvent!"); 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.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.WishingPoolModel.onStateUpate!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateHandMoveEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.WishingPoolModel gen_to_be_invoked = (Snxxz.UI.WishingPoolModel)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.UpdateHandMoveEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateHandMoveEvent -= 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.WishingPoolModel.UpdateHandMoveEvent!"); return 0; } } }