| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.WishingPoolModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 17, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 18, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | 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, "isOpenPrompting", _g_get_isOpenPrompting); |
| | | 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, "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, "isOpenPrompting", _s_set_isOpenPrompting); |
| | | 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); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isOpenPrompting(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.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 { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_isOpenPrompting(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.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_isClick(RealStatePtr L) |
| | | { |
| | | try { |