Exemple #1
0
 /// <summary>
 /// Spriteless constructor.
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="basePrice">The base price.</param>
 /// <param name="name">The name.</param>
 /// <param name="description">The description.</param>
 public EquippableItem(EquipType type, int basePrice, string name, string description)
     : this(GetDefaultSprite(type), type, basePrice, name, description)
 {
 }
Exemple #2
0
 /// <summary>
 /// Gets the default sprite.
 /// </summary>
 /// <param name="type">The type to get the default sprite of.</param>
 /// <returns></returns>
 private static Sprite GetDefaultSprite(EquipType type)
 {
     return(type.Sprite);
 }