示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = WorldId;
         hashCode = (hashCode * 397) ^ LevelAreaId;
         hashCode = (hashCode * 397) ^ Position.GetHashCode();
         hashCode = (hashCode * 397) ^ ProfilePosition.GetHashCode();
         hashCode = (hashCode * 397) ^ ProfileActorSNO;
         hashCode = (hashCode * 397) ^ ProfilePathPrecision.GetHashCode();
         hashCode = (hashCode * 397) ^ IsInCombat.GetHashCode();
         hashCode = (hashCode * 397) ^ IsInTown.GetHashCode();
         hashCode = (hashCode * 397) ^ IsInGame.GetHashCode();
         hashCode = (hashCode * 397) ^ IsLoadingWorld.GetHashCode();
         hashCode = (hashCode * 397) ^ IsInParty.GetHashCode();
         hashCode = (hashCode * 397) ^ ActorSNO;
         hashCode = (hashCode * 397) ^ (int)ActorClass;
         hashCode = (hashCode * 397) ^ HitpointsMaxTotal.GetHashCode();
         hashCode = (hashCode * 397) ^ HitpointsCurrent.GetHashCode();
         hashCode = (hashCode * 397) ^ GameId.GetHashCode();
         hashCode = (hashCode * 397) ^ LastTimeInGame.GetHashCode();
         hashCode = (hashCode * 397) ^ LastTimeUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ BattleTagHash;
         hashCode = (hashCode * 397) ^ (ProfileTagName != null ? ProfileTagName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ NumPartymembers;
         hashCode = (hashCode * 397) ^ CPlayerIndex;
         hashCode = (hashCode * 397) ^ HasRiftKeys.GetHashCode();
         hashCode = (hashCode * 397) ^ HighestLevelTieredRiftKey;
         hashCode = (hashCode * 397) ^ IsInGreaterRift.GetHashCode();
         hashCode = (hashCode * 397) ^ HighestTeamRiftKey;
         hashCode = (hashCode * 397) ^ RequestOpenRift.GetHashCode();
         hashCode = (hashCode * 397) ^ (RiftKeyPriority != null ? RiftKeyPriority.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UseHighestKeystone.GetHashCode();
         hashCode = (hashCode * 397) ^ IsVendoring.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public bool Equals(Message other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(WorldId == other.WorldId && LevelAreaId == other.LevelAreaId && Position.Equals(other.Position) && ProfilePosition.Equals(other.ProfilePosition) && ProfileActorSNO == other.ProfileActorSNO && ProfilePathPrecision.Equals(other.ProfilePathPrecision) && IsInCombat.Equals(other.IsInCombat) && IsInTown.Equals(other.IsInTown) && IsInGame.Equals(other.IsInGame) && IsLoadingWorld.Equals(other.IsLoadingWorld) && IsInParty.Equals(other.IsInParty) && ActorSNO == other.ActorSNO && ActorClass == other.ActorClass && HitpointsMaxTotal.Equals(other.HitpointsMaxTotal) && HitpointsCurrent.Equals(other.HitpointsCurrent) && GameId.Equals(other.GameId) && LastTimeInGame.Equals(other.LastTimeInGame) && LastTimeUpdated.Equals(other.LastTimeUpdated) && BattleTagHash == other.BattleTagHash && string.Equals(ProfileTagName, other.ProfileTagName) && NumPartymembers == other.NumPartymembers && CPlayerIndex == other.CPlayerIndex && HasRiftKeys.Equals(other.HasRiftKeys) && HighestLevelTieredRiftKey == other.HighestLevelTieredRiftKey && IsInGreaterRift.Equals(other.IsInGreaterRift) && HighestTeamRiftKey == other.HighestTeamRiftKey && RequestOpenRift.Equals(other.RequestOpenRift) && Equals(RiftKeyPriority, other.RiftKeyPriority) && UseHighestKeystone.Equals(other.UseHighestKeystone) && IsVendoring.Equals(other.IsVendoring));
 }