| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(PlayerDatas); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 20, 14, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 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, "ReCheckAttackTarget", _m_ReCheckAttackTarget); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEquip", _m_IsEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestWorldTick", _m_RequestWorldTick); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTick", _m_ClearTick); |
| | | 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); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ClearTick(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.ClearTick( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsTickVaild(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsTickVaild( ); |
| | | 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_GetWorldTick(RealStatePtr L) |
| | | { |
| | | try { |