示例#1
0
 public void Load(UniqueBaseTypeCsv csvdata)
 {
     Name = csvdata.Name;
     SetLeague(csvdata.League);
     Usage          = csvdata.Usage;
     IsUnobtainable = csvdata.Unobtainable;
     Source         = csvdata.Source;
 }
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            UniqueBaseTypeCsv other = (UniqueBaseTypeCsv)obj;

            return(other.BaseType == BaseType && other.Name == Name);
        }
 public void Add(UniqueBaseTypeCsv item)
 {
     foreach (UniqueItem i in Items)
     {
         if (i.Name == item.Name)
         {
             i.Load(item);
             return;
         }
     }
     Items.Add(new UniqueItem(item));
 }
示例#4
0
 public UniqueItem(UniqueBaseTypeCsv csvdata)
 {
     Load(csvdata);
 }