/// <summary> /// Compares internal data for equality. /// </summary> /// <param name="b"></param> /// <returns></returns> public bool Equals(MunitionDescriptor b) { if (!base.Equals(b)) { return(false); } if (!warhead.Equals(b.warhead)) { return(false); } if (!fuse.Equals(b.fuse)) { return(false); } if (!quantity.Equals(b.quantity)) { return(false); } if (!rate.Equals(b.rate)) { return(false); } return(true); }
/// <summary> /// Compares internal data for equality. /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns></returns> public static bool Equals(MunitionDescriptor a, MunitionDescriptor b) { return(a.Equals(b)); }