ClassData.AddClass C# (CSharp) Méthode

AddClass() public méthode

public AddClass ( string n, string d, int count, int epCount, int wpCount, int arCount, int elCount ) : void
n string
d string
count int
epCount int
wpCount int
arCount int
elCount int
Résultat void
    public void AddClass(string n, string d, int count, int epCount, int wpCount, int arCount, int elCount)
    {
        base.AddBaseData(n, d, count);
        classes = ArrayHelper.Add(new Class(), classes);

        classes[classes.Length-1].equipPart = new bool[epCount];
        classes[classes.Length-1].weapon = new bool[wpCount];
        classes[classes.Length-1].armor = new bool[arCount];
        classes[classes.Length-1].elementValue = new int[elCount];
        for(int i=0; i<elCount; i++)
        {
            classes[classes.Length-1].elementValue[i] = 100;
        }
        classes[classes.Length-1].raceValue = new int[DataHolder.Races().GetDataCount()];
        for(int i=0; i<classes[classes.Length-1].raceValue.Length; i++)
        {
            classes[classes.Length-1].raceValue[i] = 100;
        }
        classes[classes.Length-1].sizeValue = new int[DataHolder.Sizes().GetDataCount()];
        for(int i=0; i<classes[classes.Length-1].sizeValue.Length; i++)
        {
            classes[classes.Length-1].sizeValue[i] = 100;
        }
        classes[classes.Length-1].development.BaseInit(DataHolder.StatusValues().value);
    }