Пример #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 (battleLog_ != null)
            {
                hash ^= BattleLog.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            if (activeDefender_ != null)
            {
                hash ^= ActiveDefender.GetHashCode();
            }
            if (activeAttacker_ != null)
            {
                hash ^= ActiveAttacker.GetHashCode();
            }
            if (HighestFriendshipMilestone != 0)
            {
                hash ^= HighestFriendshipMilestone.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
 public void MergeFrom(BattleUpdate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.activeDefender_ != null)
     {
         if (activeDefender_ == null)
         {
             activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveDefender.MergeFrom(other.ActiveDefender);
     }
     if (other.activeAttacker_ != null)
     {
         if (activeAttacker_ == null)
         {
             activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveAttacker.MergeFrom(other.ActiveAttacker);
     }
 }
Пример #4
0
 public void MergeFrom(Battle other)
 {
     if (other == null)
     {
         return;
     }
     if (other.BattleStartMs != 0L)
     {
         BattleStartMs = other.BattleStartMs;
     }
     if (other.BattleEndMs != 0L)
     {
         BattleEndMs = other.BattleEndMs;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.defender_ != null)
     {
         if (defender_ == null)
         {
             defender_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         Defender.MergeFrom(other.Defender);
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.attacker_ != null)
     {
         if (attacker_ == null)
         {
             attacker_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         Attacker.MergeFrom(other.Attacker);
     }
     if (other.WeatherCondition != 0)
     {
         WeatherCondition = other.WeatherCondition;
     }
     if (other.HighestFriendshipMilestone != 0)
     {
         HighestFriendshipMilestone = other.HighestFriendshipMilestone;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #5
0
 public void MergeFrom(Battle other)
 {
     if (other == null)
     {
         return;
     }
     if (other.BattleStartMs != 0L)
     {
         BattleStartMs = other.BattleStartMs;
     }
     if (other.BattleEndMs != 0L)
     {
         BattleEndMs = other.BattleEndMs;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.defender_ != null)
     {
         if (defender_ == null)
         {
             defender_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         Defender.MergeFrom(other.Defender);
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.attacker_ != null)
     {
         if (attacker_ == null)
         {
             attacker_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         Attacker.MergeFrom(other.Attacker);
     }
     if (other.WeatherCondition != 0)
     {
         WeatherCondition = other.WeatherCondition;
     }
 }
Пример #6
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();
            }
            if (WeatherCondition != 0)
            {
                hash ^= WeatherCondition.GetHashCode();
            }
            if (HighestFriendshipMilestone != 0)
            {
                hash ^= HighestFriendshipMilestone.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(BattleUpdate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.activeDefender_ != null)
     {
         if (activeDefender_ == null)
         {
             activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveDefender.MergeFrom(other.ActiveDefender);
     }
     if (other.activeAttacker_ != null)
     {
         if (activeAttacker_ == null)
         {
             activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveAttacker.MergeFrom(other.ActiveAttacker);
     }
     if (other.HighestFriendshipMilestone != 0)
     {
         HighestFriendshipMilestone = other.HighestFriendshipMilestone;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (battleLog_ != null)
            {
                hash ^= BattleLog.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            if (activeDefender_ != null)
            {
                hash ^= ActiveDefender.GetHashCode();
            }
            if (activeAttacker_ != null)
            {
                hash ^= ActiveAttacker.GetHashCode();
            }
            return(hash);
        }