Esempio n. 1
0
        public static SKBitmap GetBallSprite(int ball)
        {
            string resource = SpriteName.GetResourceStringBall(ball);

            return(SpriteBuilder.LoadBitmapResource("ball." + resource) ?? SpriteBuilder.LoadBitmapResource("ball._ball4")); // Poké Ball (default)
        }
Esempio n. 2
0
        public static Image GetBallSprite(int ball)
        {
            string resource = SpriteName.GetResourceStringBall(ball);

            return((Bitmap?)Resources.ResourceManager.GetObject(resource) ?? Resources._ball4); // Poké Ball (default)
        }
Esempio n. 3
0
 protected virtual string GetSpriteAll(int species, int form, int gender, bool shiny, int generation) => SpriteName.GetResourceStringSprite(species, form, gender, generation, shiny);