Exemplo n.º 1
0
        public Pokemon(int id, string name, PokemonType firstPokemonType, PokemonType secondPokemonType = PokemonType.None, LegendaryType legendaryType = LegendaryType.None, bool hasFemale = false)
            : base(id, name, PokemonHelper.GetGenerationTypeByID(id), firstPokemonType, secondPokemonType)
        {
            LegendaryType = legendaryType;

            Sprite      = PokemonIconPool.GetPokemonSprite(ID, string.Empty);
            ShinySprite = PokemonIconPool.GetPokemonSprite(ID, string.Empty, true);

            if (hasFemale)
            {
                Female = new FemaleMon(this);
            }
        }
Exemplo n.º 2
0
        public IActionResult LegendaryType(LegendaryType legendaryType)
        {
            this.dataService.DeleteLegendaryType(legendaryType.Id);

            return(this.RedirectToAction("LegendaryTypes", "Admin"));
        }
Exemplo n.º 3
0
        public IActionResult LegendaryType(int id)
        {
            LegendaryType model = this.dataService.GetObjectByPropertyValue <LegendaryType>("Id", id);

            return(this.View(model));
        }