WeaponData.AddWeapon C# (CSharp) Method

AddWeapon() public method

public AddWeapon ( string n, string d, int count, int epCount, int seCount ) : void
n string
d string
count int
epCount int
seCount int
return void
    public void AddWeapon(string n, string d, int count, int epCount, int seCount)
    {
        base.AddBaseData(n, d, count);
        weapon = ArrayHelper.Add(new Weapon(), weapon);
        weapon[weapon.Length-1].equipPart = new bool[epCount];
        weapon[weapon.Length-1].blockPart = new bool[epCount];
        weapon[weapon.Length-1].skillEffect = new SkillEffect[seCount];
        weapon[weapon.Length-1].raceValue = new int[DataHolder.Races().GetDataCount()];
        weapon[weapon.Length-1].sizeValue = new int[DataHolder.Sizes().GetDataCount()];
        weapon[weapon.Length-1].elementValue = new int[DataHolder.Elements().GetDataCount()];
        weapon[weapon.Length-1].elementOperator = new SimpleOperator[DataHolder.Elements().GetDataCount()];
    }