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); }
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); }
public static int Main() { StackCount testObj = new StackCount(); TestLibrary.TestFramework.BeginTestCase("for property: Stack.Count"); if (testObj.RunTests()) { TestLibrary.TestFramework.EndTestCase(); TestLibrary.TestFramework.LogInformation("PASS"); return(100); } else { TestLibrary.TestFramework.EndTestCase(); TestLibrary.TestFramework.LogInformation("FAIL"); return(0); } }
public static int Main() { StackCount testObj = new StackCount(); TestLibrary.TestFramework.BeginTestCase("for property: Stack.Count"); if (testObj.RunTests()) { TestLibrary.TestFramework.EndTestCase(); TestLibrary.TestFramework.LogInformation("PASS"); return 100; } else { TestLibrary.TestFramework.EndTestCase(); TestLibrary.TestFramework.LogInformation("FAIL"); return 0; } }
public override int GetHashCode() { return(ConsumedLength.GetHashCode() ^ StackCount.GetHashCode() ^ Success.GetHashCode()); }