public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 16: {
                    Count = input.ReadInt32();
                    break;
                }

                case 24: {
                    Unseen = input.ReadBool();
                    break;
                }
                }
            }
        }
Beispiel #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

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

                case 26: {
                    DeployerPlayerCodename = input.ReadString();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    modifierType_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

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

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

                case 33: {
                    PlayerLongitude = input.ReadDouble();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 16: {
                    itemType_ = (global::PokemonGoDesktop.API.Proto.ItemType)input.ReadEnum();
                    break;
                }

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

                case 32: {
                    AppliedMs = input.ReadInt64();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 17: {
                    EncounterId = input.ReadFixed64();
                    break;
                }

                case 26: {
                    SpawnPointGuid = input.ReadString();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 16: {
                    upgradeType_ = (global::PokemonGoDesktop.API.Proto.InventoryUpgradeType)input.ReadEnum();
                    break;
                }

                case 24: {
                    AdditionalStorage = input.ReadInt32();
                    break;
                }
                }
            }
        }
Beispiel #7
0
 public void MergeFrom(UseItemXpBoostMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ItemId != 0)
     {
         ItemId = other.ItemId;
     }
 }
Beispiel #8
0
 public void MergeFrom(UseIncenseMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.IncenseType != 0)
     {
         IncenseType = other.IncenseType;
     }
 }
        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: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 24: {
                    incubatorType_ = (global::PokemonGoDesktop.API.Proto.EggIncubatorType)input.ReadEnum();
                    break;
                }

                case 32: {
                    UsesRemaining = input.ReadInt32();
                    break;
                }

                case 40: {
                    PokemonId = input.ReadUInt64();
                    break;
                }

                case 49: {
                    StartKmWalked = input.ReadDouble();
                    break;
                }

                case 57: {
                    TargetKmWalked = input.ReadDouble();
                    break;
                }
                }
            }
        }
Beispiel #10
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 9: {
                    EncounterId = input.ReadFixed64();
                    break;
                }

                case 16: {
                    pokeball_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

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

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

                case 40: {
                    HitPokemon = input.ReadBool();
                    break;
                }

                case 49: {
                    SpinModifier = input.ReadDouble();
                    break;
                }

                case 57: {
                    NormalizedHitPosition = input.ReadDouble();
                    break;
                }
                }
            }
        }
Beispiel #11
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    incenseType_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #12
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    itemId_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 16: {
                    itemType_ = (global::PokemonGoDesktop.API.Proto.ItemType)input.ReadEnum();
                    break;
                }

                case 24: {
                    category_ = (global::PokemonGoDesktop.API.Proto.ItemCategory)input.ReadEnum();
                    break;
                }

                case 37: {
                    DropFreq = input.ReadFloat();
                    break;
                }

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

                case 50: {
                    if (pokeball_ == null)
                    {
                        pokeball_ = new global::PokemonGoDesktop.API.Proto.PokeballAttributes();
                    }
                    input.ReadMessage(pokeball_);
                    break;
                }

                case 58: {
                    if (potion_ == null)
                    {
                        potion_ = new global::PokemonGoDesktop.API.Proto.PotionAttributes();
                    }
                    input.ReadMessage(potion_);
                    break;
                }

                case 66: {
                    if (revive_ == null)
                    {
                        revive_ = new global::PokemonGoDesktop.API.Proto.ReviveAttributes();
                    }
                    input.ReadMessage(revive_);
                    break;
                }

                case 74: {
                    if (battle_ == null)
                    {
                        battle_ = new global::PokemonGoDesktop.API.Proto.BattleAttributes();
                    }
                    input.ReadMessage(battle_);
                    break;
                }

                case 82: {
                    if (food_ == null)
                    {
                        food_ = new global::PokemonGoDesktop.API.Proto.FoodAttributes();
                    }
                    input.ReadMessage(food_);
                    break;
                }

                case 90: {
                    if (inventoryUpgrade_ == null)
                    {
                        inventoryUpgrade_ = new global::PokemonGoDesktop.API.Proto.InventoryUpgradeAttributes();
                    }
                    input.ReadMessage(inventoryUpgrade_);
                    break;
                }

                case 98: {
                    if (xpBoost_ == null)
                    {
                        xpBoost_ = new global::PokemonGoDesktop.API.Proto.ExperienceBoostAttributes();
                    }
                    input.ReadMessage(xpBoost_);
                    break;
                }

                case 106: {
                    if (incense_ == null)
                    {
                        incense_ = new global::PokemonGoDesktop.API.Proto.IncenseAttributes();
                    }
                    input.ReadMessage(incense_);
                    break;
                }

                case 114: {
                    if (eggIncubator_ == null)
                    {
                        eggIncubator_ = new global::PokemonGoDesktop.API.Proto.EggIncubatorAttributes();
                    }
                    input.ReadMessage(eggIncubator_);
                    break;
                }

                case 122: {
                    if (fortModifier_ == null)
                    {
                        fortModifier_ = new global::PokemonGoDesktop.API.Proto.FortModifierAttributes();
                    }
                    input.ReadMessage(fortModifier_);
                    break;
                }
                }
            }
        }
Beispiel #13
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 9: {
                    Id = input.ReadFixed64();
                    break;
                }

                case 16: {
                    pokemonId_ = (global::PokemonGoDesktop.API.Proto.PokemonId)input.ReadEnum();
                    break;
                }

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

                case 32: {
                    Stamina = input.ReadInt32();
                    break;
                }

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

                case 48: {
                    move1_ = (global::PokemonGoDesktop.API.Proto.PokemonMove)input.ReadEnum();
                    break;
                }

                case 56: {
                    move2_ = (global::PokemonGoDesktop.API.Proto.PokemonMove)input.ReadEnum();
                    break;
                }

                case 66: {
                    DeployedFortId = input.ReadString();
                    break;
                }

                case 74: {
                    OwnerName = input.ReadString();
                    break;
                }

                case 80: {
                    IsEgg = input.ReadBool();
                    break;
                }

                case 89: {
                    EggKmWalkedTarget = input.ReadDouble();
                    break;
                }

                case 97: {
                    EggKmWalkedStart = input.ReadDouble();
                    break;
                }

                case 112: {
                    Origin = input.ReadInt32();
                    break;
                }

                case 125: {
                    HeightM = input.ReadFloat();
                    break;
                }

                case 133: {
                    WeightKg = input.ReadFloat();
                    break;
                }

                case 136: {
                    IndividualAttack = input.ReadInt32();
                    break;
                }

                case 144: {
                    IndividualDefense = input.ReadInt32();
                    break;
                }

                case 152: {
                    IndividualStamina = input.ReadInt32();
                    break;
                }

                case 165: {
                    CpMultiplier = input.ReadFloat();
                    break;
                }

                case 168: {
                    pokeball_ = (global::PokemonGoDesktop.API.Proto.ItemId)input.ReadEnum();
                    break;
                }

                case 176: {
                    CapturedCellId = input.ReadUInt64();
                    break;
                }

                case 184: {
                    BattlesAttacked = input.ReadInt32();
                    break;
                }

                case 192: {
                    BattlesDefended = input.ReadInt32();
                    break;
                }

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

                case 208: {
                    CreationTimeMs = input.ReadUInt64();
                    break;
                }

                case 216: {
                    NumUpgrades = input.ReadInt32();
                    break;
                }

                case 229: {
                    AdditionalCpMultiplier = input.ReadFloat();
                    break;
                }

                case 232: {
                    Favorite = input.ReadInt32();
                    break;
                }

                case 242: {
                    Nickname = input.ReadString();
                    break;
                }

                case 248: {
                    FromFort = input.ReadInt32();
                    break;
                }
                }
            }
        }