Example #1
0
 public Stat(Stat stat, ItemModTier parentTier)
 {
     Name        = stat.Name;
     Ranges      = stat.Ranges;
     _itemType   = stat._itemType;
     _parentTier = parentTier;
 }
Example #2
0
 public Stat(string name, Range <float> range, ItemType itemType, ItemModTier parentTier)
 {
     Name        = name;
     Ranges      = new[] { range };
     _parentTier = parentTier;
     _itemType   = itemType;
 }
Example #3
0
 public Stat(string name, Range <float> range, ItemType itemType, ItemModTier parentTier)
 {
     Name       = name;
     Range      = range;
     ParentTier = parentTier;
     ItemType   = itemType;
 }
Example #4
0
 public ItemMod(ItemType itemType, string attribute, ItemModTier parentTier = null)
 {
     IsLocal    = DetermineLocal(itemType, attribute);
     Attribute  = attribute;
     ParentTier = parentTier;
     Value      = new List <float>();
     ValueColor = new List <ValueColoring>();
 }
Example #5
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;
 }
Example #6
0
        public Stat(XmlStat xmlStat, ItemType itemType, ItemModTier parentTier = null)
        {
            Name = xmlStat.Name;
            var ranges = new List <Range <float> >();

            for (var i = 0; i < xmlStat.From.Count; i++)
            {
                var from = xmlStat.From[i];
                var to   = xmlStat.To[i];
                // RangeTrees don't like from > to.
                ranges.Add(Range.Create(Math.Min(from, to), Math.Max(from, to)));
            }
            Ranges      = ranges;
            _parentTier = parentTier;
            _itemType   = itemType;
        }
Example #7
0
 public ModWrapper(string mod, ItemModTier imod)
 {
     Mod     = mod;
     ItemMod = imod;
 }
Example #8
0
 public ModWrapper(ItemModTier tier, Range <float> range)
 {
     Range       = range;
     ItemModTier = tier;
 }