少年修仙传客户端代码仓库
client_linchunjie
2019-07-09 600285f554ecbbf675c8bf0148b77731970716ef
Lua/Gen/MountModelWrap.cs
@@ -21,7 +21,7 @@
        {
         ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
         System.Type type = typeof(MountModel);
         Utils.BeginObjectRegister(type, L, translator, 0, 21, 17, 15);
         Utils.BeginObjectRegister(type, L, translator, 0, 22, 17, 15);
         
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
@@ -43,6 +43,7 @@
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSkillUnlock", _m_IsSkillUnlock);
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillUnlockLevel", _m_GetSkillUnlockLevel);
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHorseMaxLevel", _m_IsHorseMaxLevel);
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHorseUnlock", _m_IsHorseUnlock);
         
         Utils.RegisterFunc(L, Utils.METHOD_IDX, "onHorseInfoUpdate", _e_onHorseInfoUpdate);
         
@@ -736,6 +737,35 @@
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsHorseUnlock(RealStatePtr L)
        {
          try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                MountModel gen_to_be_invoked = (MountModel)translator.FastGetCSObj(L, 1);
                {
                    int _horseId = LuaAPI.xlua_tointeger(L, 2);
                        bool gen_ret = gen_to_be_invoked.IsHorseUnlock( _horseId );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    return 1;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }