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)); }
public UniqueItem(UniqueBaseTypeCsv csvdata) { Load(csvdata); }