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

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            dataSectionBattle.ClearDailyArmyRandomSeeds();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_EveryTimeArmyRandomSeedDict(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionBattle.EveryTimeArmyRandomSeedDict);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            dataSectionBattle.ClearProcesingBattleInfo();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_ArenaBattleStatus(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)dataSectionBattle.ArenaBattleStatus);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_BattleRoomId(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionBattle.BattleRoomId);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetArmyRandomSeed(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            int armyRandomSeed = dataSectionBattle.GetArmyRandomSeed();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, armyRandomSeed);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            object            o = dataSectionBattle.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_GotBattleTreasureIds(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            List <int>        gotBattleTreasureIds;
            LuaObject.checkType <List <int> >(l, 2, out gotBattleTreasureIds);
            dataSectionBattle.GotBattleTreasureIds = gotBattleTreasureIds;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Teams(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle             dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            Dictionary <int, List <int> > teams;
            LuaObject.checkType <Dictionary <int, List <int> > >(l, 2, out teams);
            dataSectionBattle.Teams = teams;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int RemoveEveryTimeArmyRandomSeed(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            int battleId;
            LuaObject.checkType(l, 2, out battleId);
            dataSectionBattle.RemoveEveryTimeArmyRandomSeed(battleId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int AddBattleTreasureId(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            int id;
            LuaObject.checkType(l, 2, out id);
            dataSectionBattle.AddBattleTreasureId(id);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_EveryTimeArmyRandomSeedDict(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle     dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            Dictionary <int, int> everyTimeArmyRandomSeedDict;
            LuaObject.checkType <Dictionary <int, int> >(l, 2, out everyTimeArmyRandomSeedDict);
            dataSectionBattle.EveryTimeArmyRandomSeedDict = everyTimeArmyRandomSeedDict;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_BattleRoomId(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            ulong             battleRoomId;
            LuaObject.checkType(l, 2, out battleRoomId);
            dataSectionBattle.BattleRoomId = battleRoomId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_ArenaBattleRandomSeed(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            int arenaBattleRandomSeed;
            LuaObject.checkType(l, 2, out arenaBattleRandomSeed);
            dataSectionBattle.ArenaBattleRandomSeed = arenaBattleRandomSeed;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int InitProcessingBattle(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            ProcessingBattle  info;
            LuaObject.checkType <ProcessingBattle>(l, 2, out info);
            dataSectionBattle.InitProcessingBattle(info);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_ArenaBattleStatus(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            ArenaBattleStatus arenaBattleStatus;
            LuaObject.checkEnum <ArenaBattleStatus>(l, 2, out arenaBattleStatus);
            dataSectionBattle.ArenaBattleStatus = arenaBattleStatus;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetTeam(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            int teamTypeId;
            LuaObject.checkType(l, 2, out teamTypeId);
            List <int> team = dataSectionBattle.GetTeam(teamTypeId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, team);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int SetTeam(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            int teamTypeId;
            LuaObject.checkType(l, 2, out teamTypeId);
            List <int> heroes;
            LuaObject.checkType <List <int> >(l, 3, out heroes);
            dataSectionBattle.SetTeam(teamTypeId, heroes);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int SetProcessingBattleInfo(IntPtr l)
    {
        int result;

        try
        {
            DataSectionBattle dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            BattleType        type;
            LuaObject.checkEnum <BattleType>(l, 2, out type);
            int typeId;
            LuaObject.checkType(l, 3, out typeId);
            dataSectionBattle.SetProcessingBattleInfo(type, typeId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }