Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BattleStartMs != 0L)
            {
                hash ^= BattleStartMs.GetHashCode();
            }
            if (BattleEndMs != 0L)
            {
                hash ^= BattleEndMs.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            if (defender_ != null)
            {
                hash ^= Defender.GetHashCode();
            }
            if (battleLog_ != null)
            {
                hash ^= BattleLog.GetHashCode();
            }
            if (attacker_ != null)
            {
                hash ^= Attacker.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (BattleStartMs != 0L)
            {
                hash ^= BattleStartMs.GetHashCode();
            }
            if (BattleEndMs != 0L)
            {
                hash ^= BattleEndMs.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            if (defender_ != null)
            {
                hash ^= Defender.GetHashCode();
            }
            if (battleLog_ != null)
            {
                hash ^= BattleLog.GetHashCode();
            }
            if (attacker_ != null)
            {
                hash ^= Attacker.GetHashCode();
            }
            if (WeatherCondition != 0)
            {
                hash ^= WeatherCondition.GetHashCode();
            }
            if (HighestFriendshipMilestone != 0)
            {
                hash ^= HighestFriendshipMilestone.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }