public Task<Move> LoadMoveByIdAsync(int id, GameVersion version, int language, CancellationToken token) { var tcs = new TaskCompletionSource<Move>(); tcs.SetResult(new Move { Accuracy = 100, DamageCategory = new DamageClass { Description = "Physischer Schaden, beeinflusst von Angriff und Verteidigung", Id = 2, Identifier = "physical", Name = "physisch" }, Description = "blub", Id = 1, IngameText = "Ein Hieb mit den Vorderbeinen oder dem Schweif.", Name = "Karateschlag", Power = 80, PowerPoints = 25, Priority = 0, ShortDescription = "bla", Type = new ElementType { DamageClassId = 2, Generation = 1, Id = 2, Identifier = "fighting", Name = "Kampf" }, VersionChangelog = "blubber blöb" }); return tcs.Task; }
/// <summary> /// Changes the current version /// </summary> /// <param name="newVersion">The new version</param> protected virtual void ChangeVersion(GameVersion newVersion) { CurrentVersion = newVersion; }
public Task<PokemonForm> LoadPokemonFormByIdAsync(int id, GameVersion version, int language, CancellationToken token) { var tcs = new TaskCompletionSource<PokemonForm>(); tcs.SetResult(new PokemonForm { Ability1 = new ModelNameBase { Id = 12, Name = "Facettenauge" }, Ability2 = new ModelNameBase { Id = 24, Name = "Rauhaut" }, BaseExperience = 155, BaseHappiness = 70, CaptureRate = 255, Color = new PokemonColor { Id = 1, Name = "Grün" }, DexEntry = new PokedexEntry { DexDescription = "Dieses Pokémon trägt von Geburt an einen Samen\nauf dem Rücken,\nder mit ihm keimt und wächst.", DexNumber = 15, Id = 2, Name = "Sinnoh" }, Genus = "Blume", GrowthRate = new ModelNameBase { Id = 1, Name = "Mittel schnell" }, Habitat = new ModelNameBase { Id = 1, Name = "Gras" }, HatchCounter = 5120, Height = 102, HeldItem = new ModelNameBase { Id = 1, Name = "Sinelbeere" }, HiddenAbility = new ModelNameBase { Id = 36, Name = "Wassertempo" }, Id = 1, IsBaby = false, ItemRarity = 15, Name = "Garados", Shape = new ModelUriBase { Id = 1, Name = "Aufrecht" }, Species = new ModelNameBase { Id = 1, Name = "Glurak" }, Type1 = new ElementType { DamageClassId = 2, Generation = 1, Id = 2, Identifier = "fighting", Name = "Kampf" }, Weight = 50 }); return tcs.Task; }
/// <summary> /// Reacts to changes of the current version /// </summary> /// <param name="newVersion">The new version</param> protected override void ChangeVersion(GameVersion newVersion) { base.ChangeVersion(newVersion); AbilityList = NotifyTaskCompletionCollection<ModelNameBase>.Create(LoadAbilitiesAsync, _cachedAbilityId); }