API reference · 日本語API索引

IntegerOptions.cs

Runtime/Adapters/BuiltIn/IntegerOptions.cs

1 using System;
2 
3 namespace MeatMotion
4 {
5     public enum RoundingMode : byte { ToEven, AwayFromZero, ToZero, ToPositiveInfinity, ToNegativeInfinity }
6 
7     [Serializable]
8     public struct IntegerOptions : IMotionOptions, IEquatable<IntegerOptions>
9     {
10         public RoundingMode RoundingMode;
11         public readonly bool Equals(IntegerOptions other) => RoundingMode == other.RoundingMode;
12         public override readonly bool Equals(object obj) => obj is IntegerOptions other && Equals(other);
13         public override readonly int GetHashCode() => (int)RoundingMode;
14     }
15 }