コード例 #1
0
ファイル: Movement.cs プロジェクト: Rudolfking/AlphaFlight
        public override int GetHashCode()
        {
            var hashCode = -1766562337;

            hashCode = hashCode * -1521134295 + Yaw.GetHashCode();
            hashCode = hashCode * -1521134295 + Pitch.GetHashCode();
            hashCode = hashCode * -1521134295 + Roll.GetHashCode();
            hashCode = hashCode * -1521134295 + TimeMs.GetHashCode();
            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TimeMs != 0L)
            {
                hash ^= TimeMs.GetHashCode();
            }
            if (IsOverride != false)
            {
                hash ^= IsOverride.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }