Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (display_ != null)
            {
                hash ^= Display.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.Unspecified)
            {
                hash ^= Unspecified.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.MoveToTile)
            {
                hash ^= MoveToTile.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.MoneyExchange)
            {
                hash ^= MoneyExchange.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.MoveSteps)
            {
                hash ^= MoveSteps.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.Collectible)
            {
                hash ^= Collectible.GetHashCode();
            }
            hash ^= (int)extraCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (display_ != null)
            {
                hash ^= Display.GetHashCode();
            }
            if (Timing != global::Monopoly.Protobuf.TileEffect.Types.Timing.Unspecified)
            {
                hash ^= Timing.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.Unspecified)
            {
                hash ^= Unspecified.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.MoveToTile)
            {
                hash ^= MoveToTile.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.MoneyExchange)
            {
                hash ^= MoneyExchange.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.MoveSteps)
            {
                hash ^= MoveSteps.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.Collectible)
            {
                hash ^= Collectible.GetHashCode();
            }
            if (extraCase_ == ExtraOneofCase.Detained)
            {
                hash ^= Detained.GetHashCode();
            }
            hash ^= (int)extraCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }