Пример #1
0
 public Builder(uint id, Rang rang, CannonBaseModel model) : base(id, CannonBaseModelHelper.GetName(model),
                                                                  rang)
 {
     _cannonPart.CannonBaseType  = CannonBaseModelHelper.GetType(model);
     _cannonPart.ProjectileType  = CannonBaseModelHelper.GetProjectileType(model);
     _cannonPart.CannonBaseModel = model;
 }
        public static ProjectileType GetProjectileType(CannonBaseModel model)
        {
            var type = _cannonBaseProjectileTypes[model];

            return(type);
        }
        public static CannonBaseType GetType(CannonBaseModel model)
        {
            var type = _cannonBaseTypes[model];

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

            return(name == null ? NameNotFound : name);
        }