示例#1
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;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(BattleParticipant other)
 {
     if (other == null)
     {
         return;
     }
     if (other.activePokemon_ != null)
     {
         if (activePokemon_ == null)
         {
             activePokemon_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActivePokemon.MergeFrom(other.ActivePokemon);
     }
     if (other.trainerPublicProfile_ != null)
     {
         if (trainerPublicProfile_ == null)
         {
             trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile);
     }
     reversePokemon_.Add(other.reversePokemon_);
     defeatedPokemon_.Add(other.defeatedPokemon_);
 }
示例#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);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (trainerPublicProfile_ == null)
                    {
                        trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
                    }
                    input.ReadMessage(trainerPublicProfile_);
                    break;
                }

                case 26: {
                    reversePokemon_.AddEntriesFrom(input, _repeated_reversePokemon_codec);
                    break;
                }

                case 34: {
                    defeatedPokemon_.AddEntriesFrom(input, _repeated_defeatedPokemon_codec);
                    break;
                }

                case 42: {
                    lobbyPokemon_.AddEntriesFrom(input, _repeated_lobbyPokemon_codec);
                    break;
                }

                case 48: {
                    DamageDealt = input.ReadInt32();
                    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;
                }
                }
            }
        }
示例#6
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);
 }
示例#7
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(BattleParticipant other)
 {
     if (other == null)
     {
         return;
     }
     if (other.activePokemon_ != null)
     {
         if (activePokemon_ == null)
         {
             activePokemon_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActivePokemon.MergeFrom(other.ActivePokemon);
     }
     if (other.trainerPublicProfile_ != null)
     {
         if (trainerPublicProfile_ == null)
         {
             trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile);
     }
     reversePokemon_.Add(other.reversePokemon_);
     defeatedPokemon_.Add(other.defeatedPokemon_);
     lobbyPokemon_.Add(other.lobbyPokemon_);
     if (other.DamageDealt != 0)
     {
         DamageDealt = other.DamageDealt;
     }
     if (other.SuperEffectiveChargeMove != false)
     {
         SuperEffectiveChargeMove = other.SuperEffectiveChargeMove;
     }
     if (other.WeatherBoosted != false)
     {
         WeatherBoosted = other.WeatherBoosted;
     }
     if (other.HighestFriendshipMilestone != 0)
     {
         HighestFriendshipMilestone = other.HighestFriendshipMilestone;
     }
     friendCodename_.Add(other.friendCodename_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 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);
 }
示例#10
0
        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 (activePokemon_ == null)
                    {
                        activePokemon_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activePokemon_);
                    break;
                }

                case 18: {
                    if (trainerPublicProfile_ == null)
                    {
                        trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
                    }
                    input.ReadMessage(trainerPublicProfile_);
                    break;
                }

                case 26: {
                    reversePokemon_.AddEntriesFrom(input, _repeated_reversePokemon_codec);
                    break;
                }

                case 34: {
                    defeatedPokemon_.AddEntriesFrom(input, _repeated_defeatedPokemon_codec);
                    break;
                }

                case 42: {
                    lobbyPokemon_.AddEntriesFrom(input, _repeated_lobbyPokemon_codec);
                    break;
                }

                case 48: {
                    DamageDealt = input.ReadInt32();
                    break;
                }

                case 56: {
                    SuperEffectiveChargeMove = input.ReadBool();
                    break;
                }

                case 64: {
                    WeatherBoosted = input.ReadBool();
                    break;
                }
                }
            }
        }