예제 #1
0
파일: Thing.cs 프로젝트: thomotron/Phinix
        public override int GetHashCode()
        {
            int hash = 1;

            if (DefName.Length != 0)
            {
                hash ^= DefName.GetHashCode();
            }
            if (StackCount != 0)
            {
                hash ^= StackCount.GetHashCode();
            }
            if (StuffDefName.Length != 0)
            {
                hash ^= StuffDefName.GetHashCode();
            }
            if (Quality != 0)
            {
                hash ^= Quality.GetHashCode();
            }
            if (HitPoints != 0)
            {
                hash ^= HitPoints.GetHashCode();
            }
            if (innerProtoThing_ != null)
            {
                hash ^= InnerProtoThing.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
파일: Thing.cs 프로젝트: Maatss/Phinix
        public override int GetHashCode()
        {
            int hash = 1;

            if (DefName.Length != 0)
            {
                hash ^= DefName.GetHashCode();
            }
            if (StackCount != 0)
            {
                hash ^= StackCount.GetHashCode();
            }
            if (StuffDefName.Length != 0)
            {
                hash ^= StuffDefName.GetHashCode();
            }
            if (Quality != global::Trading.Quality.Awful)
            {
                hash ^= Quality.GetHashCode();
            }
            if (HitPoints != 0)
            {
                hash ^= HitPoints.GetHashCode();
            }
            if (innerProtoThing_ != null)
            {
                hash ^= InnerProtoThing.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
 public override int GetHashCode()
 {
     return(ConsumedLength.GetHashCode() ^
            StackCount.GetHashCode() ^
            Success.GetHashCode());
 }