Example #1
0
 /// <summary>Generates a unique hash code for the given SpindaSpots.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <SpindaCoords>(this.LeftEar)
            .AddValue <SpindaCoords>(this.RightEar)
            .AddValue <SpindaCoords>(this.LeftFace)
            .AddValue <SpindaCoords>(this.RightFace)
            .ToHashCode());
 }
Example #2
0
 /// <summary>Generates a unique hash code for the given HiddenPower.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <Type>(this.Type)
            .AddValue <int>(this.BasePower)
            .ToHashCode());
 }
Example #3
0
 /// <summary>Generates a unique hash code for the given LevelupMove.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <Move>(this.Move)
            .AddValue <int>(this.Level)
            .ToHashCode());
 }
Example #4
0
 /// <summary>Generates a unique hash code for the given SpindaCoords.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <int>(this.X)
            .AddValue <int>(this.Y)
            .ToHashCode());
 }
 public HashCodeBuilder CreateHashCodeBuilder <TList>(TList source, int start, int count) where TList : IReadOnlyList <char>
 {
     return(HashCodeBuilder.Create(source, start, count));
 }