| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(PlayerDeadModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 18, 16, 9); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 18, 17, 9); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseRebornWinEvent", _e_CloseRebornWinEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonKillArray", _g_get_dungeonKillArray); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RebornConditions", _g_get_RebornConditions); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "playerIsDie", _g_get_playerIsDie); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCanReborn", _g_get_IsCanReborn); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "localBossState", _g_get_localBossState); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_RebornConditions(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | PlayerDeadModel gen_to_be_invoked = (PlayerDeadModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.RebornConditions); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_playerIsDie(RealStatePtr L) |
| | | { |
| | | try { |