public void addType(ShipWeapon.WeaponType weaponType) { if (!acceptedTypes.Contains(weaponType)) { acceptedTypes.Add(weaponType); numTypes++; } }
public ShipWeapon.WeaponType[] validTypes() { ShipWeapon.WeaponType[] a = new ShipWeapon.WeaponType[numTypes]; acceptedTypes.CopyTo(a); return(a); }