public override bool Equals(object obj) { CountEntry other = obj as CountEntry; if (other != null) { if (!Itmref.Equals(other.Itmref)) { return(false); } if (!LabelNumber.Equals(other.LabelNumber)) { return(false); } if (!Value.Equals(other.Value)) { return(false); } if (!Unit.Equals(other.Unit)) { return(false); } if (!Time.Equals(other.Time)) { return(false); } if (!IsDeleted.Equals(other.IsDeleted)) { return(false); } if (!Hash.Equals(other.Hash)) { return(false); } if (!Sync.Equals(other.Sync)) { return(false); } if (SyncCode != other.SyncCode) { return(false); } if (!Location.Equals(other.Location)) { return(false); } return(true); } return(base.Equals(obj)); }
public override void AddNameProperty(ObjectPropertyList list) { if (_Resource != CraftResource.None) { list.Add(1053099, "#{0}\t{1}", CraftResources.GetLocalizationNumber(_Resource), String.Format("#{0}", LabelNumber.ToString())); // ~1_oretype~ ~2_armortype~ } else { base.AddNameProperty(list); } }