/// <inheritdoc/> protected override void ConcreteConfigure(IObjectTypeDescriptor <Stat> descriptor) { descriptor.Description(@"Stats determine certain aspects of battles. Each pokémon has a value for each stat which grows as they gain levels and can be altered momenarily by effects in battles."); descriptor.Field(x => x.GameIndex) .Description("ID the games use for this stat."); descriptor.Field(x => x.IsBattleOnly) .Description("Whether this stat only exists within a battle."); descriptor.Field(x => x.AffectingMoves) .Description("A detail of moves which affect this stat positively or negatively.") .Type <MoveStatAffectSetsType>(); descriptor.Field(x => x.AffectingNatures) .Description("A detail of natures which affect this stat positively or negatively.") .Type <NatureStatAffectSetsType>(); descriptor.UseApiResourceCollectionField <Stat, Characteristic, CharacteristicType>(x => x.Characteristics); descriptor.UseNamedApiResourceField <Stat, MoveDamageClass, MoveDamageClassType>(x => x.MoveDamageClass); }