Esempio n. 1
0
 public Barrel(float damageMultiplier, float attackSpeedMultiplier, int additionalShotsAmount, int barrelType, int barrelModel)
 {
     DamageMultiplier      = damageMultiplier;
     AttackSpeedMultiplier = attackSpeedMultiplier;
     AdditionalShotsAmount = additionalShotsAmount;
     BarrelType            = (BarrelType)barrelType;
     BarrelModel           = (BarrelModel)barrelModel;
 }
        public GameObject GetBarrelPrefab(BarrelModel barrelModel)
        {
            switch (barrelModel)
            {
            case BarrelModel.SimpleBarrel:
                return(GetPrefab(SimpleBarrel));
            }

            return(null);
        }
        public static BarrelType GetType(BarrelModel model)
        {
            var type = _barrelTypes[model];

            return(type);
        }
        public static string GetName(BarrelModel model)
        {
            var name = _barrelNames[model];

            return(name == null ? NameNotFound : name);
        }
Esempio n. 5
0
 public Builder(uint id, Rang rang, BarrelModel model) : base(id, BarrelModelHelper.GetName(model), rang)
 {
     _cannonPart.BarrelType  = BarrelModelHelper.GetType(model);
     _cannonPart.BarrelModel = model;
 }