Exemple #1
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);
     }
 }
Exemple #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::POGOProtos.Networking.Responses.AttackGymResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }

                case 26: {
                    BattleId = input.ReadString();
                    break;
                }

                case 34: {
                    if (activeDefender_ == null)
                    {
                        activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeDefender_);
                    break;
                }

                case 42: {
                    if (activeAttacker_ == null)
                    {
                        activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeAttacker_);
                    break;
                }

                case 50: {
                    if (battleUpdate_ == null)
                    {
                        battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
                    }
                    input.ReadMessage(battleUpdate_);
                    break;
                }
                }
            }
        }
Exemple #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    BattleStartMs = input.ReadInt64();
                    break;
                }

                case 16: {
                    BattleEndMs = input.ReadInt64();
                    break;
                }

                case 26: {
                    BattleId = input.ReadString();
                    break;
                }

                case 34: {
                    if (defender_ == null)
                    {
                        defender_ = new global::POGOProtos.Data.Battle.BattleParticipant();
                    }
                    input.ReadMessage(defender_);
                    break;
                }

                case 42: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }

                case 50: {
                    if (attacker_ == null)
                    {
                        attacker_ = new global::POGOProtos.Data.Battle.BattleParticipant();
                    }
                    input.ReadMessage(attacker_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(StartGymBattleResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.BattleStartTimestampMs != 0L)
     {
         BattleStartTimestampMs = other.BattleStartTimestampMs;
     }
     if (other.BattleEndTimestampMs != 0L)
     {
         BattleEndTimestampMs = other.BattleEndTimestampMs;
     }
     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.battle_ != null)
     {
         if (battle_ == null)
         {
             battle_ = new global::POGOProtos.Data.Battle.Battle();
         }
         Battle.MergeFrom(other.Battle);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 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);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    result_ = (global::POGOProtos.Networking.Responses.StartGymBattleResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    BattleStartTimestampMs = input.ReadInt64();
                    break;
                }

                case 24: {
                    BattleEndTimestampMs = input.ReadInt64();
                    break;
                }

                case 34: {
                    BattleId = input.ReadString();
                    break;
                }

                case 42: {
                    if (defender_ == null)
                    {
                        defender_ = new global::POGOProtos.Data.Battle.BattleParticipant();
                    }
                    input.ReadMessage(defender_);
                    break;
                }

                case 50: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }

                case 18: {
                    BattleId = input.ReadString();
                    break;
                }

                case 26: {
                    if (activeDefender_ == null)
                    {
                        activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeDefender_);
                    break;
                }

                case 34: {
                    if (activeAttacker_ == null)
                    {
                        activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeAttacker_);
                    break;
                }

                case 40: {
                    highestFriendshipMilestone_ = (global::POGOProtos.Enums.FriendshipLevelMilestone)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #8
0
 public void MergeFrom(AttackGymResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     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.battleUpdate_ != null)
     {
         if (battleUpdate_ == null)
         {
             battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
         }
         BattleUpdate.MergeFrom(other.BattleUpdate);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #9
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;
     }
 }
Exemple #10
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }

                case 18: {
                    BattleId = input.ReadString();
                    break;
                }

                case 26: {
                    if (activeDefender_ == null)
                    {
                        activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeDefender_);
                    break;
                }

                case 34: {
                    if (activeAttacker_ == null)
                    {
                        activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeAttacker_);
                    break;
                }
                }
            }
        }
 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);
 }
 public void MergeFrom(StartGymBattleResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.BattleStartTimestampMs != 0L)
     {
         BattleStartTimestampMs = other.BattleStartTimestampMs;
     }
     if (other.BattleEndTimestampMs != 0L)
     {
         BattleEndTimestampMs = other.BattleEndTimestampMs;
     }
     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);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    BattleStartMs = input.ReadInt64();
                    break;
                }

                case 16: {
                    BattleEndMs = input.ReadInt64();
                    break;
                }

                case 26: {
                    BattleId = input.ReadString();
                    break;
                }

                case 34: {
                    if (defender_ == null)
                    {
                        defender_ = new global::POGOProtos.Data.Battle.BattleParticipant();
                    }
                    input.ReadMessage(defender_);
                    break;
                }

                case 42: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }

                case 50: {
                    if (attacker_ == null)
                    {
                        attacker_ = new global::POGOProtos.Data.Battle.BattleParticipant();
                    }
                    input.ReadMessage(attacker_);
                    break;
                }

                case 56: {
                    weatherCondition_ = (global::POGOProtos.Enums.WeatherCondition)input.ReadEnum();
                    break;
                }

                case 64: {
                    highestFriendshipMilestone_ = (global::POGOProtos.Enums.FriendshipLevelMilestone)input.ReadEnum();
                    break;
                }
                }
            }
        }