public void MergeFrom(StoreItem other) { if (other == null) { return; } if (other.ItemId.Length != 0) { ItemId = other.ItemId; } if (other.IsIap != false) { IsIap = other.IsIap; } if (other.currencyToBuy_ != null) { if (currencyToBuy_ == null) { currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); } CurrencyToBuy.MergeFrom(other.CurrencyToBuy); } if (other.yieldsCurrency_ != null) { if (yieldsCurrency_ == null) { yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); } YieldsCurrency.MergeFrom(other.YieldsCurrency); } if (other.yieldsItem_ != null) { if (yieldsItem_ == null) { yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); } YieldsItem.MergeFrom(other.YieldsItem); } tags_.Add(other.tags_); if (other.Unknown7 != 0) { Unknown7 = other.Unknown7; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { ItemId = input.ReadString(); break; } case 16: { IsIap = input.ReadBool(); break; } case 26: { if (currencyToBuy_ == null) { currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); } input.ReadMessage(currencyToBuy_); break; } case 34: { if (yieldsCurrency_ == null) { yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); } input.ReadMessage(yieldsCurrency_); break; } case 42: { if (yieldsItem_ == null) { yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); } input.ReadMessage(yieldsItem_); break; } case 50: { tags_.AddEntriesFrom(input, _map_tags_codec); break; } case 56: { Unknown7 = input.ReadInt32(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (pokemonData_ == null) { pokemonData_ = new global::POGOProtos.Data.PokemonData(); } input.ReadMessage(pokemonData_); break; } case 18: { if (item_ == null) { item_ = new global::POGOProtos.Inventory.Item.ItemData(); } input.ReadMessage(item_); break; } case 26: { if (pokedexEntry_ == null) { pokedexEntry_ = new global::POGOProtos.Data.PokedexEntry(); } input.ReadMessage(pokedexEntry_); break; } case 34: { if (playerStats_ == null) { playerStats_ = new global::POGOProtos.Data.Player.PlayerStats(); } input.ReadMessage(playerStats_); break; } case 42: { if (playerCurrency_ == null) { playerCurrency_ = new global::POGOProtos.Data.Player.PlayerCurrency(); } input.ReadMessage(playerCurrency_); break; } case 50: { if (playerCamera_ == null) { playerCamera_ = new global::POGOProtos.Data.Player.PlayerCamera(); } input.ReadMessage(playerCamera_); break; } case 58: { if (inventoryUpgrades_ == null) { inventoryUpgrades_ = new global::POGOProtos.Inventory.InventoryUpgrades(); } input.ReadMessage(inventoryUpgrades_); break; } case 66: { if (appliedItems_ == null) { appliedItems_ = new global::POGOProtos.Inventory.AppliedItems(); } input.ReadMessage(appliedItems_); break; } case 74: { if (eggIncubators_ == null) { eggIncubators_ = new global::POGOProtos.Inventory.EggIncubators(); } input.ReadMessage(eggIncubators_); break; } case 82: { if (candy_ == null) { candy_ = new global::POGOProtos.Inventory.Candy(); } input.ReadMessage(candy_); break; } case 90: { if (quest_ == null) { quest_ = new global::POGOProtos.Data.Quests.Quest(); } input.ReadMessage(quest_); break; } case 98: { if (avatarItem_ == null) { avatarItem_ = new global::POGOProtos.Data.Avatar.AvatarItem(); } input.ReadMessage(avatarItem_); break; } case 106: { if (raidTickets_ == null) { raidTickets_ = new global::POGOProtos.Inventory.RaidTickets(); } input.ReadMessage(raidTickets_); break; } } } }
public void MergeFrom(InventoryItemData other) { if (other == null) { return; } if (other.pokemonData_ != null) { if (pokemonData_ == null) { pokemonData_ = new global::POGOProtos.Data.PokemonData(); } PokemonData.MergeFrom(other.PokemonData); } if (other.item_ != null) { if (item_ == null) { item_ = new global::POGOProtos.Inventory.Item.ItemData(); } Item.MergeFrom(other.Item); } if (other.pokedexEntry_ != null) { if (pokedexEntry_ == null) { pokedexEntry_ = new global::POGOProtos.Data.PokedexEntry(); } PokedexEntry.MergeFrom(other.PokedexEntry); } if (other.playerStats_ != null) { if (playerStats_ == null) { playerStats_ = new global::POGOProtos.Data.Player.PlayerStats(); } PlayerStats.MergeFrom(other.PlayerStats); } if (other.playerCurrency_ != null) { if (playerCurrency_ == null) { playerCurrency_ = new global::POGOProtos.Data.Player.PlayerCurrency(); } PlayerCurrency.MergeFrom(other.PlayerCurrency); } if (other.playerCamera_ != null) { if (playerCamera_ == null) { playerCamera_ = new global::POGOProtos.Data.Player.PlayerCamera(); } PlayerCamera.MergeFrom(other.PlayerCamera); } if (other.inventoryUpgrades_ != null) { if (inventoryUpgrades_ == null) { inventoryUpgrades_ = new global::POGOProtos.Inventory.InventoryUpgrades(); } InventoryUpgrades.MergeFrom(other.InventoryUpgrades); } if (other.appliedItems_ != null) { if (appliedItems_ == null) { appliedItems_ = new global::POGOProtos.Inventory.AppliedItems(); } AppliedItems.MergeFrom(other.AppliedItems); } if (other.eggIncubators_ != null) { if (eggIncubators_ == null) { eggIncubators_ = new global::POGOProtos.Inventory.EggIncubators(); } EggIncubators.MergeFrom(other.EggIncubators); } if (other.candy_ != null) { if (candy_ == null) { candy_ = new global::POGOProtos.Inventory.Candy(); } Candy.MergeFrom(other.Candy); } if (other.quest_ != null) { if (quest_ == null) { quest_ = new global::POGOProtos.Data.Quests.Quest(); } Quest.MergeFrom(other.Quest); } if (other.avatarItem_ != null) { if (avatarItem_ == null) { avatarItem_ = new global::POGOProtos.Data.Avatar.AvatarItem(); } AvatarItem.MergeFrom(other.AvatarItem); } if (other.raidTickets_ != null) { if (raidTickets_ == null) { raidTickets_ = new global::POGOProtos.Inventory.RaidTickets(); } RaidTickets.MergeFrom(other.RaidTickets); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { PokemonId = input.ReadFixed64(); break; } case 16: { PokedexEntryNumber = input.ReadInt32(); break; } case 24: { OriginalCp = input.ReadInt32(); break; } case 32: { AdjustedCpMin = input.ReadInt32(); break; } case 40: { AdjustedCpMax = input.ReadInt32(); break; } case 48: { OriginalStamina = input.ReadInt32(); break; } case 56: { AdjustedStaminaMin = input.ReadInt32(); break; } case 64: { AdjustedStaminaMax = input.ReadInt32(); break; } case 72: { FriendLevelCap = input.ReadBool(); break; } case 80: { Move1 = input.ReadInt32(); break; } case 88: { Move2 = input.ReadInt32(); break; } case 98: { if (pokemonDisplay_ == null) { pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay(); } input.ReadMessage(pokemonDisplay_); break; } case 104: { CapturedS2CellId = input.ReadInt64(); break; } case 114: { if (tradedPokemon_ == null) { tradedPokemon_ = new global::POGOProtos.Data.PokemonData(); } input.ReadMessage(tradedPokemon_); break; } case 122: { if (pokeball_ == null) { pokeball_ = new global::POGOProtos.Inventory.Item.ItemData(); } input.ReadMessage(pokeball_); break; } case 128: { IndividualAttack = input.ReadInt32(); break; } case 136: { IndividualDefense = input.ReadInt32(); break; } case 144: { IndividualStamina = input.ReadInt32(); break; } case 154: { Nickname = input.ReadString(); break; } } } }
public void MergeFrom(TradingPokemon other) { if (other == null) { return; } if (other.PokemonId != 0UL) { PokemonId = other.PokemonId; } if (other.PokedexEntryNumber != 0) { PokedexEntryNumber = other.PokedexEntryNumber; } if (other.OriginalCp != 0) { OriginalCp = other.OriginalCp; } if (other.AdjustedCpMin != 0) { AdjustedCpMin = other.AdjustedCpMin; } if (other.AdjustedCpMax != 0) { AdjustedCpMax = other.AdjustedCpMax; } if (other.OriginalStamina != 0) { OriginalStamina = other.OriginalStamina; } if (other.AdjustedStaminaMin != 0) { AdjustedStaminaMin = other.AdjustedStaminaMin; } if (other.AdjustedStaminaMax != 0) { AdjustedStaminaMax = other.AdjustedStaminaMax; } if (other.FriendLevelCap != false) { FriendLevelCap = other.FriendLevelCap; } if (other.Move1 != 0) { Move1 = other.Move1; } if (other.Move2 != 0) { Move2 = other.Move2; } if (other.pokemonDisplay_ != null) { if (pokemonDisplay_ == null) { pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay(); } PokemonDisplay.MergeFrom(other.PokemonDisplay); } if (other.CapturedS2CellId != 0L) { CapturedS2CellId = other.CapturedS2CellId; } if (other.tradedPokemon_ != null) { if (tradedPokemon_ == null) { tradedPokemon_ = new global::POGOProtos.Data.PokemonData(); } TradedPokemon.MergeFrom(other.TradedPokemon); } if (other.pokeball_ != null) { if (pokeball_ == null) { pokeball_ = new global::POGOProtos.Inventory.Item.ItemData(); } Pokeball.MergeFrom(other.Pokeball); } if (other.IndividualAttack != 0) { IndividualAttack = other.IndividualAttack; } if (other.IndividualDefense != 0) { IndividualDefense = other.IndividualDefense; } if (other.IndividualStamina != 0) { IndividualStamina = other.IndividualStamina; } if (other.Nickname.Length != 0) { Nickname = other.Nickname; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(InventoryItemData other) { if (other == null) { return; } if (other.pokemonData_ != null) { if (pokemonData_ == null) { pokemonData_ = new global::POGOProtos.Data.PokemonData(); } PokemonData.MergeFrom(other.PokemonData); } if (other.ItemId != null) { if (ItemId == null) { ItemId = new global::POGOProtos.Inventory.Item.ItemData(); } Item.MergeFrom(other.Item); } if (other.pokedexEntry_ != null) { if (pokedexEntry_ == null) { pokedexEntry_ = new global::POGOProtos.Data.PokedexEntry(); } PokedexEntry.MergeFrom(other.PokedexEntry); } if (other.playerStats_ != null) { if (playerStats_ == null) { playerStats_ = new global::POGOProtos.Data.Player.PlayerStats(); } PlayerStats.MergeFrom(other.PlayerStats); } if (other.playerCurrency_ != null) { if (playerCurrency_ == null) { playerCurrency_ = new global::POGOProtos.Data.Player.PlayerCurrency(); } PlayerCurrency.MergeFrom(other.PlayerCurrency); } if (other.playerCamera_ != null) { if (playerCamera_ == null) { playerCamera_ = new global::POGOProtos.Data.Player.PlayerCamera(); } PlayerCamera.MergeFrom(other.PlayerCamera); } if (other.inventoryUpgrades_ != null) { if (inventoryUpgrades_ == null) { inventoryUpgrades_ = new global::POGOProtos.Inventory.InventoryUpgrades(); } InventoryUpgrades.MergeFrom(other.InventoryUpgrades); } if (other.appliedItems_ != null) { if (appliedItems_ == null) { appliedItems_ = new global::POGOProtos.Inventory.AppliedItems(); } AppliedItems.MergeFrom(other.AppliedItems); } if (other.eggIncubators_ != null) { if (eggIncubators_ == null) { eggIncubators_ = new global::POGOProtos.Inventory.EggIncubators(); } EggIncubators.MergeFrom(other.EggIncubators); } if (other.candy_ != null) { if (candy_ == null) { candy_ = new global::POGOProtos.Inventory.Candy(); } Candy.MergeFrom(other.Candy); } }