Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = InstanceId;
         hashCode = (hashCode * 397) ^ PlayerIndex;
         hashCode = (hashCode * 397) ^ (SquadId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CapturerInstanceId;
         hashCode = (hashCode * 397) ^ InstanceId;
         hashCode = (hashCode * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ NewPlayerIndex;
         hashCode = (hashCode * 397) ^ OldPlayerIndex;
         hashCode = (hashCode * 397) ^ PopulationCost;
         hashCode = (hashCode * 397) ^ (SquadId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemple #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CreatorInstanceId;
         hashCode = (hashCode * 397) ^ EnergyCost;
         hashCode = (hashCode * 397) ^ InstanceId;
         hashCode = (hashCode * 397) ^ IsClone.GetHashCode();
         hashCode = (hashCode * 397) ^ PlayerIndex;
         hashCode = (hashCode * 397) ^ PopulationCost;
         hashCode = (hashCode * 397) ^ ProvidedByScenario.GetHashCode();
         hashCode = (hashCode * 397) ^ (SpawnLocation != null ? SpawnLocation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SquadId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ SupplyCost;
         return(hashCode);
     }
 }