public static SKBitmap GetBallSprite(int ball) { string resource = SpriteName.GetResourceStringBall(ball); return(SpriteBuilder.LoadBitmapResource("ball." + resource) ?? SpriteBuilder.LoadBitmapResource("ball._ball4")); // Poké Ball (default) }
public static Image GetBallSprite(int ball) { string resource = SpriteName.GetResourceStringBall(ball); return((Bitmap?)Resources.ResourceManager.GetObject(resource) ?? Resources._ball4); // Poké Ball (default) }
protected virtual string GetSpriteAll(int species, int form, int gender, bool shiny, int generation) => SpriteName.GetResourceStringSprite(species, form, gender, generation, shiny);