Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Id = input.ReadString();
                    break;
                }

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

                case 25: {
                    Latitude = input.ReadDouble();
                    break;
                }

                case 33: {
                    Longitude = input.ReadDouble();
                    break;
                }

                case 40: {
                    ownedByTeam_ = (global::POGOProtos.Enums.TeamColor)input.ReadEnum();
                    break;
                }

                case 48: {
                    guardPokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

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

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

                case 72: {
                    type_ = (global::POGOProtos.Map.Fort.FortType)input.ReadEnum();
                    break;
                }

                case 80: {
                    GymPoints = input.ReadInt64();
                    break;
                }

                case 88: {
                    IsInBattle = input.ReadBool();
                    break;
                }

                case 98: {
                    ActiveFortModifier = input.ReadBytes();
                    break;
                }

                case 106: {
                    if (lureInfo_ == null)
                    {
                        lureInfo_ = new global::POGOProtos.Map.Fort.FortLureInfo();
                    }
                    input.ReadMessage(lureInfo_);
                    break;
                }

                case 112: {
                    CooldownCompleteTimestampMs = input.ReadInt64();
                    break;
                }

                case 120: {
                    sponsor_ = (global::POGOProtos.Map.Fort.FortSponsor)input.ReadEnum();
                    break;
                }

                case 128: {
                    renderingType_ = (global::POGOProtos.Map.Fort.FortRenderingType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Id = input.ReadString();
                    break;
                }

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

                case 25: {
                    Latitude = input.ReadDouble();
                    break;
                }

                case 33: {
                    Longitude = input.ReadDouble();
                    break;
                }

                case 40: {
                    ownedByTeam_ = (global::POGOProtos.Enums.TeamColor)input.ReadEnum();
                    break;
                }

                case 48: {
                    guardPokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

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

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

                case 72: {
                    type_ = (global::POGOProtos.Map.Fort.FortType)input.ReadEnum();
                    break;
                }

                case 80: {
                    GymPoints = input.ReadInt64();
                    break;
                }

                case 88: {
                    IsInBattle = input.ReadBool();
                    break;
                }

                case 98:
                case 96: {
                    activeFortModifier_.AddEntriesFrom(input, _repeated_activeFortModifier_codec);
                    break;
                }

                case 106: {
                    if (lureInfo_ == null)
                    {
                        lureInfo_ = new global::POGOProtos.Map.Fort.FortLureInfo();
                    }
                    input.ReadMessage(lureInfo_);
                    break;
                }

                case 112: {
                    CooldownCompleteTimestampMs = input.ReadInt64();
                    break;
                }

                case 120: {
                    sponsor_ = (global::POGOProtos.Map.Fort.FortSponsor)input.ReadEnum();
                    break;
                }

                case 128: {
                    renderingType_ = (global::POGOProtos.Map.Fort.FortRenderingType)input.ReadEnum();
                    break;
                }

                case 136: {
                    DeployLockoutEndMs = input.ReadInt64();
                    break;
                }

                case 146: {
                    if (guardPokemonDisplay_ == null)
                    {
                        guardPokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(guardPokemonDisplay_);
                    break;
                }

                case 152: {
                    Closed = input.ReadBool();
                    break;
                }

                case 162: {
                    if (raidInfo_ == null)
                    {
                        raidInfo_ = new global::POGOProtos.Data.Raid.RaidInfo();
                    }
                    input.ReadMessage(raidInfo_);
                    break;
                }

                case 170: {
                    if (gymDisplay_ == null)
                    {
                        gymDisplay_ = new global::POGOProtos.Map.Fort.GymDisplay();
                    }
                    input.ReadMessage(gymDisplay_);
                    break;
                }

                case 176: {
                    Visited = input.ReadBool();
                    break;
                }

                case 184: {
                    SameTeamDeployLockoutEndMs = input.ReadInt64();
                    break;
                }

                case 192: {
                    AllowCheckin = input.ReadBool();
                    break;
                }

                case 202: {
                    ImageUrl = input.ReadString();
                    break;
                }

                case 208: {
                    InEvent = input.ReadBool();
                    break;
                }

                case 218: {
                    BannerUrl = input.ReadString();
                    break;
                }
                }
            }
        }
Exemplo n.º 3
0
 public void MergeFrom(FortData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.LastModifiedTimestampMs != 0L)
     {
         LastModifiedTimestampMs = other.LastModifiedTimestampMs;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.Enabled != false)
     {
         Enabled = other.Enabled;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.OwnedByTeam != 0)
     {
         OwnedByTeam = other.OwnedByTeam;
     }
     if (other.GuardPokemonId != 0)
     {
         GuardPokemonId = other.GuardPokemonId;
     }
     if (other.GuardPokemonCp != 0)
     {
         GuardPokemonCp = other.GuardPokemonCp;
     }
     if (other.GymPoints != 0L)
     {
         GymPoints = other.GymPoints;
     }
     if (other.IsInBattle != false)
     {
         IsInBattle = other.IsInBattle;
     }
     activeFortModifier_.Add(other.activeFortModifier_);
     if (other.lureInfo_ != null)
     {
         if (lureInfo_ == null)
         {
             lureInfo_ = new global::POGOProtos.Map.Fort.FortLureInfo();
         }
         LureInfo.MergeFrom(other.LureInfo);
     }
     if (other.CooldownCompleteTimestampMs != 0L)
     {
         CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs;
     }
     if (other.Sponsor != 0)
     {
         Sponsor = other.Sponsor;
     }
     if (other.RenderingType != 0)
     {
         RenderingType = other.RenderingType;
     }
 }