Esempio n. 1
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;
                }
                }
            }
        }
Esempio n. 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;
     }
 }
 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: {
                    type_ = (global::POGOProtos.Data.Battle.BattleActionType)input.ReadEnum();
                    break;
                }

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

                case 24: {
                    DurationMs = input.ReadInt32();
                    break;
                }

                case 40: {
                    EnergyDelta = input.ReadInt32();
                    break;
                }

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

                case 56: {
                    TargetIndex = input.ReadInt32();
                    break;
                }

                case 64: {
                    ActivePokemonId = input.ReadUInt64();
                    break;
                }

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

                case 82: {
                    if (battleResults_ == null)
                    {
                        battleResults_ = new global::POGOProtos.Data.Battle.BattleResults();
                    }
                    input.ReadMessage(battleResults_);
                    break;
                }

                case 88: {
                    DamageWindowsStartTimestampMs = input.ReadInt64();
                    break;
                }

                case 96: {
                    DamageWindowsEndTimestampMs = input.ReadInt64();
                    break;
                }

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

                case 112: {
                    TargetPokemonId = input.ReadUInt64();
                    break;
                }

                case 122: {
                    if (leveledUpFriends_ == null)
                    {
                        leveledUpFriends_ = new global::POGOProtos.Data.Friends.LeveledUpFriends();
                    }
                    input.ReadMessage(leveledUpFriends_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(BattleAction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.ActionStartMs != 0L)
     {
         ActionStartMs = other.ActionStartMs;
     }
     if (other.DurationMs != 0)
     {
         DurationMs = other.DurationMs;
     }
     if (other.EnergyDelta != 0)
     {
         EnergyDelta = other.EnergyDelta;
     }
     if (other.AttackerIndex != 0)
     {
         AttackerIndex = other.AttackerIndex;
     }
     if (other.TargetIndex != 0)
     {
         TargetIndex = other.TargetIndex;
     }
     if (other.ActivePokemonId != 0UL)
     {
         ActivePokemonId = other.ActivePokemonId;
     }
     if (other.playerJoined_ != null)
     {
         if (playerJoined_ == null)
         {
             playerJoined_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         PlayerJoined.MergeFrom(other.PlayerJoined);
     }
     if (other.battleResults_ != null)
     {
         if (battleResults_ == null)
         {
             battleResults_ = new global::POGOProtos.Data.Battle.BattleResults();
         }
         BattleResults.MergeFrom(other.BattleResults);
     }
     if (other.DamageWindowsStartTimestampMs != 0L)
     {
         DamageWindowsStartTimestampMs = other.DamageWindowsStartTimestampMs;
     }
     if (other.DamageWindowsEndTimestampMs != 0L)
     {
         DamageWindowsEndTimestampMs = other.DamageWindowsEndTimestampMs;
     }
     if (other.playerLeft_ != null)
     {
         if (playerLeft_ == null)
         {
             playerLeft_ = new global::POGOProtos.Data.Battle.BattleParticipant();
         }
         PlayerLeft.MergeFrom(other.PlayerLeft);
     }
     if (other.TargetPokemonId != 0UL)
     {
         TargetPokemonId = other.TargetPokemonId;
     }
     if (other.leveledUpFriends_ != null)
     {
         if (leveledUpFriends_ == null)
         {
             leveledUpFriends_ = new global::POGOProtos.Data.Friends.LeveledUpFriends();
         }
         LeveledUpFriends.MergeFrom(other.LeveledUpFriends);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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;
                }
                }
            }
        }