コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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));
 }