/// <summary> /// Adds a local sprite to the lists, provided they are in a 50x50 grid /// </summary> /// <param name="name"></param> /// <param name="x"></param> /// <param name="y"></param> private static void AddLocalSprite(LocalSpriteName name, string filePath, int x, int y) { const int GRIDSIZE = 50; localSprites[(int)name] = new SpriteData(filePath, new Rectangle(x*GRIDSIZE, y *GRIDSIZE, GRIDSIZE, GRIDSIZE)); }
public static SpriteData GetSprite(LocalSpriteName name) { return localSprites[(int)name]; }