public static int __callBase_SetCommonSuccessHeroPhantomLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            HeroPhantomLevel     level;
            LuaObject.checkType <HeroPhantomLevel>(l, 2, out level);
            List <int> heroes;
            LuaObject.checkType <List <int> >(l, 3, out heroes);
            List <int> battleTreasures;
            LuaObject.checkType <List <int> >(l, 4, out battleTreasures);
            List <int> newAchievementIds;
            LuaObject.checkType <List <int> >(l, 5, out newAchievementIds);
            heroPhantomCompoment.m_luaExportHelper.__callBase_SetCommonSuccessHeroPhantomLevel(level, heroes, battleTreasures, newAchievementIds);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int FinishedHeroPhantomLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            HeroPhantomLevel     level;
            LuaObject.checkType <HeroPhantomLevel>(l, 2, out level);
            bool isWin;
            LuaObject.checkType(l, 3, out isWin);
            List <int> heroes;
            LuaObject.checkType <List <int> >(l, 4, out heroes);
            List <int> battleTreasures;
            LuaObject.checkType <List <int> >(l, 5, out battleTreasures);
            List <int> achievementIds;
            LuaObject.checkType <List <int> >(l, 6, out achievementIds);
            int i = heroPhantomCompoment.FinishedHeroPhantomLevel(level, isWin, heroes, battleTreasures, achievementIds);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int DeInit(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            heroPhantomCompoment.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            heroPhantomCompoment.m_luaExportHelper.__callBase_PostDeSerialize();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment o = new HeroPhantomCompoment();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetAllFinishedLevels(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            List <int>           o = heroPhantomCompoment.m_luaExportHelper.__callBase_GetAllFinishedLevels();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetDSVersion(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            ushort dsversion = heroPhantomCompoment.GetDSVersion();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dsversion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_Tick(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            heroPhantomCompoment.m_luaExportHelper.__callBase_Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int DeSerialize(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            DSHeroPhantomNtf     ntf;
            LuaObject.checkType <DSHeroPhantomNtf>(l, 2, out ntf);
            heroPhantomCompoment.DeSerialize(ntf);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_IsCompleteHeroPhantomLevelAchievement(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            int achievementRelatedInfoID;
            LuaObject.checkType(l, 2, out achievementRelatedInfoID);
            bool b = heroPhantomCompoment.m_luaExportHelper.__callBase_IsCompleteHeroPhantomLevelAchievement(achievementRelatedInfoID);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetHeroPhantomLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            HeroPhantomLevel o = heroPhantomCompoment.m_luaExportHelper.__callBase_GetHeroPhantomLevel(levelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_FinishedHeroPhantomLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            HeroPhantomLevel     level;
            LuaObject.checkType <HeroPhantomLevel>(l, 2, out level);
            List <int> heroes;
            LuaObject.checkType <List <int> >(l, 3, out heroes);
            heroPhantomCompoment.m_luaExportHelper.__callBase_FinishedHeroPhantomLevel(level, heroes);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_CheckPlayerOutOfBattle(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            int i;
            LuaObject.checkType(l, 2, out i);
            bool b = heroPhantomCompoment.m_luaExportHelper.__callBase_CheckPlayerOutOfBattle(ref i);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            LuaObject.pushValue(l, i);
            result = 3;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 14
0
 // Token: 0x06007258 RID: 29272 RVA: 0x001FAD28 File Offset: 0x001F8F28
 public LuaExportHelper(HeroPhantomCompoment owner)
 {
     this.m_owner = owner;
 }