Пример #1
0
    public static int set_CompleteTreasureMapMissionEvent(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon            treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            Action <BattleType, int, List <int> > value;
            int num = LuaObject.checkDelegate <Action <BattleType, int, List <int> > >(l, 2, out value);
            if (num != 0)
            {
                if (num == 1)
                {
                    treasureMapComponentCommon.CompleteTreasureMapMissionEvent += value;
                }
                else if (num == 2)
                {
                    treasureMapComponentCommon.CompleteTreasureMapMissionEvent -= value;
                }
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #2
0
    public static int get_m_bag(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, treasureMapComponentCommon.m_luaExportHelper.m_bag);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon o = new TreasureMapComponentCommon();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #4
0
    public static int PostInit(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            treasureMapComponentCommon.PostInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #5
0
    public static int IsGameFunctionOpened(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            bool b = treasureMapComponentCommon.m_luaExportHelper.IsGameFunctionOpened();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #6
0
    public static int GetName(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            string name = treasureMapComponentCommon.GetName();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, name);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #7
0
    public static int Tick(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            treasureMapComponentCommon.Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #8
0
    public static int set_m_hero(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            HeroComponentCommon        hero;
            LuaObject.checkType <HeroComponentCommon>(l, 2, out hero);
            treasureMapComponentCommon.m_luaExportHelper.m_hero = hero;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #9
0
    public static int set_Owner(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            IComponentOwner            owner;
            LuaObject.checkType <IComponentOwner>(l, 2, out owner);
            treasureMapComponentCommon.Owner = owner;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #10
0
    public static int set_m_treasureMapDS(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            DataSectionTreasureMap     treasureMapDS;
            LuaObject.checkType <DataSectionTreasureMap>(l, 2, out treasureMapDS);
            treasureMapComponentCommon.m_luaExportHelper.m_treasureMapDS = treasureMapDS;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #11
0
    public static int set_m_battle(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            BattleComponentCommon      battle;
            LuaObject.checkType <BattleComponentCommon>(l, 2, out battle);
            treasureMapComponentCommon.m_luaExportHelper.m_battle = battle;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #12
0
    public static int set_m_configDataLoader(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            IConfigDataLoader          configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            treasureMapComponentCommon.m_luaExportHelper.m_configDataLoader = configDataLoader;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #13
0
    public static int OnFinishedLevel(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            treasureMapComponentCommon.m_luaExportHelper.OnFinishedLevel(levelId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #14
0
    public static int IsLevelFinished(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            bool b = treasureMapComponentCommon.IsLevelFinished(levelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #15
0
    public static int CanAttackTreasureLevel(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            int leveId;
            LuaObject.checkType(l, 2, out leveId);
            int i = treasureMapComponentCommon.CanAttackTreasureLevel(leveId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #16
0
    public static int CanAttackLevelByEnergyAndSoOn(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon  treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            ConfigDataTreasureLevelInfo levelInfo;
            LuaObject.checkType <ConfigDataTreasureLevelInfo>(l, 2, out levelInfo);
            int i = treasureMapComponentCommon.m_luaExportHelper.CanAttackLevelByEnergyAndSoOn(levelInfo);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #17
0
    public static int SetSuccessTreasureMapLevel(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon  treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            ConfigDataTreasureLevelInfo levelInfo;
            LuaObject.checkType <ConfigDataTreasureLevelInfo>(l, 2, out levelInfo);
            List <int> battleTreasures;
            LuaObject.checkType <List <int> >(l, 3, out battleTreasures);
            treasureMapComponentCommon.m_luaExportHelper.SetSuccessTreasureMapLevel(levelInfo, battleTreasures);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #18
0
    public static int __clearDele_CompleteTreasureMapMissionEvent(IntPtr l)
    {
        int result;

        try
        {
            TreasureMapComponentCommon treasureMapComponentCommon = (TreasureMapComponentCommon)LuaObject.checkSelf(l);
            BattleType arg;
            LuaObject.checkEnum <BattleType>(l, 2, out arg);
            int arg2;
            LuaObject.checkType(l, 3, out arg2);
            List <int> arg3;
            LuaObject.checkType <List <int> >(l, 4, out arg3);
            treasureMapComponentCommon.m_luaExportHelper.__clearDele_CompleteTreasureMapMissionEvent(arg, arg2, arg3);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }