Exemple #1
0
        private GunType(Firerate firerate, Damage damage, Spread spread, bool autoFiring, bool shootThroughEverything)
        {
            Firerate = firerate;
            Cooldown = FirerateMap[firerate];
            Damage   = damage;

            Spread       = spread;
            SpreadCount  = SpreadCountMap[spread];
            SpreadAmount = SpreadAmountMap[spread];
            HasAutoFire  = autoFiring;
            CanShootThroughEverything = shootThroughEverything;
        }
Exemple #2
0
 public static GunType Create(Firerate firerate, Damage damage, Spread spread, bool autoFiring,
                              bool shootThroughEverything)
 {
     return(new GunType(firerate, damage, spread, autoFiring, shootThroughEverything));
 }