| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(PlayerDatas); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 15, 8); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 20, 14, 7); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitPlayerData", _m_InitPlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePlayerData", _m_UpdatePlayerData); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTickVaild", _m_IsTickVaild); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldTick", _m_GetWorldTick); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRoleAttrRefresh", _e_OnRoleAttrRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "worldLevelUpdateEvent", _e_worldLevelUpdateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSwitchAttackMode", _e_OnSwitchAttackMode); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitPlayerInfoEvent", _e_InitPlayerInfoEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPlayerInfoEvent", _e_RefreshPlayerInfoEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayerDataRefreshInfoEvent", _e_PlayerDataRefreshInfoEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "playerDataUpdateEvent", _e_playerDataUpdateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "playerDataRefreshEvent", _e_playerDataRefreshEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "attributePromoteEvent", _e_attributePromoteEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayerDataRefreshEvent", _e_PlayerDataRefreshEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "spNewGetEvent", _e_spNewGetEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PlayerId", _g_get_PlayerId); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "hero", _g_get_hero); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "loginInfo", _g_get_loginInfo); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fairyData", _g_get_fairyData); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "market", _g_get_market); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "realm", _g_get_realm); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "maliciousAtkPlayer", _g_get_maliciousAtkPlayer); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServerTick", _g_get_crossServerTick); |
| | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "hero", _s_set_hero); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "loginInfo", _s_set_loginInfo); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "fairyData", _s_set_fairyData); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "market", _s_set_market); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "realm", _s_set_realm); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "maliciousAtkPlayer", _s_set_maliciousAtkPlayer); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossServerTick", _s_set_crossServerTick); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_market(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.market); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_realm(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_market(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.market = (PlayerMarketData)translator.GetObject(L, 2, typeof(PlayerMarketData)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_realm(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_OnRoleAttrRefresh(RealStatePtr L) |
| | | static int _e_worldLevelUpdateEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.OnRoleAttrRefresh!"); |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.worldLevelUpdateEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_InitPlayerInfoEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.InitPlayerInfoEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_RefreshPlayerInfoEvent(RealStatePtr L) |
| | | static int _e_playerDataUpdateEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.RefreshPlayerInfoEvent!"); |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.playerDataUpdateEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_PlayerDataRefreshInfoEvent(RealStatePtr L) |
| | | static int _e_playerDataRefreshEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | System.Action<PlayerDataType> gen_delegate = translator.GetDelegate<System.Action<PlayerDataType>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PlayerDataRefresh>!"); |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PlayerDataType>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.PlayerDataRefreshInfoEvent!"); |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.playerDataRefreshEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | System.Action<PlayerDataType, int> gen_delegate = translator.GetDelegate<System.Action<PlayerDataType, int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PlayerDataRefresh, int>!"); |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PlayerDataType, int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.attributePromoteEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_PlayerDataRefreshEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | System.Action<PlayerDataType, int> gen_delegate = translator.GetDelegate<System.Action<PlayerDataType, int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PlayerDataRefresh, int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to PlayerDatas.PlayerDataRefreshEvent!"); |
| | | return 0; |
| | | } |
| | | |