| | |
| | | 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, "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, "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_realm(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.realm); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_maliciousAtkPlayer(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.fairyData = (PlayerFairyData)translator.GetObject(L, 2, typeof(PlayerFairyData)); |
| | | |
| | | } 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 { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.realm = (PlayerRealmData)translator.GetObject(L, 2, typeof(PlayerRealmData)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |