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

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

                case 10:
                case 13: {
                    attackScalar_.AddEntriesFrom(input, _repeated_attackScalar_codec);
                    break;
                }

                case 16: {
                    attackType_ = (global::PokemonGoDesktop.API.Proto.PokemonType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(TypeEffectiveSettings other)
 {
     if (other == null)
     {
         return;
     }
     attackScalar_.Add(other.attackScalar_);
     if (other.AttackType != 0)
     {
         AttackType = other.AttackType;
     }
 }
Esempio n. 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 29: {
                    ModelScale = input.ReadFloat();
                    break;
                }

                case 32: {
                    type_ = (global::PokemonGoDesktop.API.Proto.PokemonType)input.ReadEnum();
                    break;
                }

                case 40: {
                    type2_ = (global::PokemonGoDesktop.API.Proto.PokemonType)input.ReadEnum();
                    break;
                }

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

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

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

                case 74:
                case 72: {
                    quickMoves_.AddEntriesFrom(input, _repeated_quickMoves_codec);
                    break;
                }

                case 82:
                case 80: {
                    cinematicMoves_.AddEntriesFrom(input, _repeated_cinematicMoves_codec);
                    break;
                }

                case 90:
                case 93: {
                    animationTime_.AddEntriesFrom(input, _repeated_animationTime_codec);
                    break;
                }

                case 98:
                case 96: {
                    evolutionIds_.AddEntriesFrom(input, _repeated_evolutionIds_codec);
                    break;
                }

                case 104: {
                    EvolutionPips = input.ReadInt32();
                    break;
                }

                case 112: {
                    rarity_ = (global::PokemonGoDesktop.API.Proto.PokemonRarity)input.ReadEnum();
                    break;
                }

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

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

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

                case 149: {
                    HeightStdDev = input.ReadFloat();
                    break;
                }

                case 157: {
                    WeightStdDev = input.ReadFloat();
                    break;
                }

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

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

                case 176: {
                    CandyToEvolve = input.ReadInt32();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

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

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

                case 45: {
                    AccuracyChance = input.ReadFloat();
                    break;
                }

                case 53: {
                    CriticalChance = input.ReadFloat();
                    break;
                }

                case 61: {
                    HealScalar = input.ReadFloat();
                    break;
                }

                case 69: {
                    StaminaLossScalar = input.ReadFloat();
                    break;
                }

                case 72: {
                    TrainerLevelMin = input.ReadInt32();
                    break;
                }

                case 80: {
                    TrainerLevelMax = input.ReadInt32();
                    break;
                }

                case 90: {
                    VfxName = input.ReadString();
                    break;
                }

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

                case 104: {
                    DamageWindowStartMs = input.ReadInt32();
                    break;
                }

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

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