public override int GetHashCode()
        {
            int hash = 1;

            if (Costume != 0)
            {
                hash ^= Costume.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Shiny != false)
            {
                hash ^= Shiny.GetHashCode();
            }
            if (Form != 0)
            {
                hash ^= Form.GetHashCode();
            }
            if (WeatherBoostedCondition != 0)
            {
                hash ^= WeatherBoostedCondition.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public override int GetHashCode()
 {
     return
         (RGBA.GetHashCode() ^
          RepeatU.GetHashCode() ^
          RepeatV.GetHashCode() ^
          OffsetU.GetHashCode() ^
          OffsetV.GetHashCode() ^
          Rotation.GetHashCode() ^
          Glow.GetHashCode() ^
          Bump.GetHashCode() ^
          Shiny.GetHashCode() ^
          Fullbright.GetHashCode() ^
          MediaFlags.GetHashCode() ^
          TexMapType.GetHashCode() ^
          TextureID.GetHashCode());
 }