/// <summary> /// Compares internal data for equality. /// </summary> /// <param name="b"></param> /// <returns></returns> public bool Equals(Detonation b) { if (!WarfareHeader.Equals(this, b)) { return(false); } if (!velocity.Equals(b.velocity)) { return(false); } if (!locationInWorldCoordinates.Equals(b.locationInWorldCoordinates)) { return(false); } if (descriptor != null && !descriptor.Equals(b.descriptor)) { return(false); } if (!locationInEntityCoordinates.Equals(b.locationInEntityCoordinates)) { return(false); } if (!detonationResult.Equals(b.detonationResult)) { return(false); } if (!variableParameters.Equals(b.variableParameters)) { 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(Detonation a, Detonation b) { return(a.Equals(b)); }