Пример #1
0
 public Stat(string name, Range<float> range, ItemType itemType, ItemModTier parentTier)
 {
     Name = name;
     Range = range;
     ParentTier = parentTier;
     ItemType = itemType;
 }
Пример #2
0
 public Stat(XmlStat xmlStat, ItemType itemType, ItemModTier parentTier = null)
 {
     Name = xmlStat.Name;
     // RangeTrees don't like from > to.
     Range = new Range<float>(Math.Min(xmlStat.From, xmlStat.To), Math.Max(xmlStat.From, xmlStat.To));
     ParentTier = parentTier;
     ItemType = itemType;
 }
Пример #3
0
 public ModWrapper(string mod, ItemModTier imod)
 {
     this.Mod     = mod;
     this.ItemMod = imod;
 }
Пример #4
0
 public string TiersString(ItemModTier[] tiers)
 {
     if (tiers == null || tiers.Length == 0)
         return "";
     return string.Join("/", tiers.Select(s => string.Format("T{0}:{1}", s.Tier, s.Name)));
 }