| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseData", _g_get_baseData); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "extersion", _g_get_extersion); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "skill", _g_get_skill); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "rank", _g_get_rank); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalExpRate", _g_get_totalExpRate); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldLv", _g_get_worldLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldExpRate", _g_get_worldExpRate); |
| | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.skill); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_rank(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.rank); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |