示例#1
0
 /// <inheritdoc/>
 protected override void ConcreteConfigure(IObjectTypeDescriptor <Move> descriptor)
 {
     descriptor.Description(@"Moves are the skills of pokémon in battle. 
         In battle, a Pokémon uses one move each turn. 
         Some moves (including those learned by Hidden Machine) can be used outside 
         of battle as well, usually for the purpose of removing obstacles or exploring new areas.");
     descriptor.Ignore(x => x.FlavorTextEntries);
     descriptor.Field(x => x.Accuracy)
     .Description("The percent value of how likely this move is to be successful.");
     descriptor.Field(x => x.EffectChance)
     .Description("The percent value of how likely it is this moves effect will happen.");
     descriptor.Field(x => x.Pp)
     .Description("Power points. The number of times this move can be used.");
     descriptor.Field(x => x.Priority)
     .Description("A value between -8 and 8. Sets the order in which moves are executed during battle.");
     descriptor.Field(x => x.Power)
     .Description("The base power of this move with a value of 0 if it does not have a base power");
     descriptor.Field(x => x.ContestCombos)
     .Description("A detail of normal and super contest combos that require this move.")
     .Type <ContestComboSetsType>();
     descriptor.UseNamedApiResourceField <Move, ContestType, ContestTypeType>(x => x.ContestType);
     descriptor.UseApiResourceField <Move, ContestEffect, ContestEffectType>(x => x.ContestEffect);
     descriptor.UseNamedApiResourceField <Move, MoveDamageClass, MoveDamageClassType>(x => x.DamageClass);
     descriptor.Field(x => x.EffectEntries)
     .Description("The effect of this move listed in different languages.")
     .Type <ListType <VerboseEffectType> >();
     descriptor.Field(x => x.EffectChanges)
     .Description("The list of previous effects this move has had across version groups of the games.")
     .Type <ListType <AbilityEffectChangeType> >();
     descriptor.UseNamedApiResourceField <Move, Generation, GenerationType>(x => x.Generation);
     descriptor.Field(x => x.Meta)
     .Description("Meta data about this move.")
     .Type <MoveMetaDataType>();
     descriptor.Field(x => x.PastValues)
     .Description("A list of move resource value changes across ersion groups of the game.")
     .Type <ListType <PastMoveStatValuesType> >();
     descriptor.Field(x => x.StatChanges)
     .Description("A list of stats this moves effects and how much it effects them.")
     .Type <ListType <MoveStatChangeType> >();
     descriptor.UseApiResourceField <Move, SuperContestEffect, SuperContestEffectType>(x => x.SuperContestEffect);
     descriptor.UseNamedApiResourceField <Move, MoveTarget, MoveTargetType>(x => x.Target);
     descriptor.UseNamedApiResourceField <Move, Type, TypePropertyType>(x => x.Type);
     descriptor.Field(x => x.Machines)
     .Type <ListType <MachineVersionDetailType> >();
 }
 /// <inheritdoc/>
 protected override void ConcreteConfigure(IObjectTypeDescriptor <PokemonSpecies> descriptor)
 {
     descriptor.Description(@"A Pokémon Species forms the basis for at least one pokémon. 
         Attributes of a Pokémon species are shared across all varieties of pokémon within the species. 
         A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant.");
     descriptor.Ignore(x => x.FormDescriptions);
     descriptor.Field(x => x.Order)
     .Description(@"The order in which species should be sorted.
             Based on National Dex order, except families are grouped together and sorted by stage.");
     descriptor.Field(x => x.GenderRate)
     .Description("The chance of this Pokémon being female, in eighths; or -1 for genderless.");
     descriptor.Field(x => x.CaptureRate)
     .Description("The base capture rate; up to 255. The higher the number, the easier the catch.");
     descriptor.Field(x => x.BaseHappiness)
     .Description("The happiness when caught by a normal pokéball; up to 255. The higher the number, the happier the pokémon.");
     descriptor.Field(x => x.IsBaby)
     .Description("Whether or not this is a baby pokémon.");
     descriptor.Field(x => x.HatchCounter)
     .Description("Initial hatch counter: one must walk 255 × (hatch_counter + 1) steps before this Pokémon's egg hatches, unless utilizing bonuses like Flame Body's.");
     descriptor.Field(x => x.HasGenderDifferences)
     .Description("Whether or not this pokémon can have different genders.");
     descriptor.Field(x => x.FormsSwitchable)
     .Description("Whether or not this pokémon has multiple forms and can switch between them.");
     descriptor.UseNamedApiResourceField <PokemonSpecies, GrowthRate, GrowthRateType>(x => x.GrowthRate);
     descriptor.Field(x => x.PokedexNumbers)
     .Description("A list of pokedexes and the indexes reserved within them for this pokémon species.")
     .Type <ListType <PokemonSpeciesDexEntryType> >();
     descriptor.UseNamedApiResourceCollectionField <PokemonSpecies, EggGroup, EggGroupType>(x => x.EggGroups);
     descriptor.UseNamedApiResourceField <PokemonSpecies, PokemonColor, PokemonColorType>(x => x.Color);
     descriptor.UseNamedApiResourceField <PokemonSpecies, PokemonShape, PokemonShapeType>(x => x.Shape);
     descriptor.UseNullableNamedApiResourceField <PokemonSpecies, PokemonSpecies, PokemonSpeciesType>(x => x.EvolvesFromSpecies);
     descriptor.UseApiResourceField <PokemonSpecies, EvolutionChain, EvolutionChainType>(x => x.EvolutionChain);
     descriptor.UseNamedApiResourceField <PokemonSpecies, PokemonHabitat, PokemonHabitatType>(x => x.Habitat);
     descriptor.UseNamedApiResourceField <PokemonSpecies, Generation, GenerationType>(x => x.Generation);
     descriptor.Field(x => x.PalParkEncounters)
     .Description("A list of encounters that can be had with this pokémon species in pal park.")
     .Type <ListType <PalParkEncounterAreaType> >();
     descriptor.Field(x => x.Genera)
     .Description("The genus of this pokémon species listed in multiple languages.")
     .Type <ListType <GenusType> >();
     descriptor.Field(x => x.Varieties)
     .Description("A list of the pokémon that exist within this pokémon species.")
     .Type <ListType <PokemonSpeciesVarietyType> >();
     descriptor.Field(x => x.FlavorTextEntries)
     .Type <ListType <PokemonSpeciesFlavorTextsType> >();
 }
示例#3
0
 /// <inheritdoc/>
 protected override void Configure(IObjectTypeDescriptor <MachineVersionDetail> descriptor)
 {
     descriptor.UseApiResourceField <MachineVersionDetail, Machine, MachineType>(x => x.Machine);
     descriptor.UseNamedApiResourceField <MachineVersionDetail, VersionGroup, VersionGroupType>(x => x.VersionGroup);
 }