| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.PackModelInterface); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 8, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 38, 8, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsCustomItem", _m_CheckIsCustomItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreciousItem", _m_GetPreciousItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPreciousCondition", _m_CheckPreciousCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSameJob", _m_IsSameJob); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetEquip", _m_OnGetEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPickItem", _m_RefreshPickItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckBetterEquipByRealm", _m_CheckBetterEquipByRealm); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsSameJob(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PackModelInterface gen_to_be_invoked = (Snxxz.UI.PackModelInterface)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _jobLimit = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsSameJob( _jobLimit ); |
| | | 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_OnGetEquip(RealStatePtr L) |
| | | { |
| | | try { |