Exemple #1
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena o = new DataSectionArena();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #2
0
    public static int ResetReceivedVictoryPointsRewardedIndexs(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            dataSectionArena.ResetReceivedVictoryPointsRewardedIndexs();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #3
0
    public static int GetCurrentVictoryPoints(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            int currentVictoryPoints          = dataSectionArena.GetCurrentVictoryPoints();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, currentVictoryPoints);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #4
0
    public static int SetAttackedOpponent(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            bool             attackedOpponent;
            LuaObject.checkType(l, 2, out attackedOpponent);
            dataSectionArena.SetAttackedOpponent(attackedOpponent);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #5
0
    public static int AddReceivedVictoryPointsRewardIndex(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            int victoryPointsIndex;
            LuaObject.checkType(l, 2, out victoryPointsIndex);
            dataSectionArena.AddReceivedVictoryPointsRewardIndex(victoryPointsIndex);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #6
0
    public static int SetDefensiveRuleId(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            byte             defensiveRuleId;
            LuaObject.checkType(l, 2, out defensiveRuleId);
            dataSectionArena.SetDefensiveRuleId(defensiveRuleId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #7
0
    public static int SetThisWeekBattleIds(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            List <int>       thisWeekBattleIds;
            LuaObject.checkType <List <int> >(l, 2, out thisWeekBattleIds);
            dataSectionArena.SetThisWeekBattleIds(thisWeekBattleIds);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #8
0
    public static int SetWeekLastFlushTime(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            DateTime         weekLastFlushTime;
            LuaObject.checkValueType <DateTime>(l, 2, out weekLastFlushTime);
            dataSectionArena.SetWeekLastFlushTime(weekLastFlushTime);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #9
0
    public static int SetDefensiveTeam(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena         dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            ArenaPlayerDefensiveTeam defensiveTeam;
            LuaObject.checkType <ArenaPlayerDefensiveTeam>(l, 2, out defensiveTeam);
            dataSectionArena.SetDefensiveTeam(defensiveTeam);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #10
0
    public static int FindOpponent(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            int index;
            LuaObject.checkType(l, 2, out index);
            ArenaOpponent o = dataSectionArena.FindOpponent(index);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #11
0
    public static int HasReceivedVictoryPointsRewardedIndex(IntPtr l)
    {
        int result;

        try
        {
            DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l);
            int index;
            LuaObject.checkType(l, 2, out index);
            bool b = dataSectionArena.HasReceivedVictoryPointsRewardedIndex(index);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }