| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonId", _g_get_dungeonId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineId", _g_get_lineId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "npcId", _g_get_npcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServer", _g_get_crossServer); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyLevel", _g_get_alchemyLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reward", _g_get_reward); |
| | |
| | | |
| | | HazyRegionConfig gen_to_be_invoked = (HazyRegionConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.npcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_crossServer(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | HazyRegionConfig gen_to_be_invoked = (HazyRegionConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.crossServer); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |