FromModel() public static method

Obtain details of a ship given its model
public static FromModel ( string model ) : Ship
model string
return Ship
コード例 #1
0
        /// <summary>
        /// Augment the ship's information from the model
        /// </summary>
        public void Augment()
        {
            Ship template = ShipDefinitions.FromModel(model);

            if (template != null)
            {
                EDID                 = template.EDID;
                EDName               = template.EDName;
                manufacturer         = template.manufacturer;
                phoneticmanufacturer = template.phoneticmanufacturer;
                phoneticmodel        = template.phoneticmodel;
                size                 = template.size;
                if (role == null)
                {
                    role = EddiDataDefinitions.Role.MultiPurpose;
                }
            }
        }