public void Add(string name, SpriteSheet sheet) { if (!SpriteSheets.ContainsKey(name)) { SpriteSheets.Add(name, sheet); } }
public void RemoveSpriteSheet(string name) { if (SpriteSheets.ContainsKey(name)) { SpriteSheets.Remove(name); } }
public SpriteSheet GetSpriteSheet(string name) { if (SpriteSheets.ContainsKey(name)) { return(SpriteSheets[name]); } if (SpriteSheets.Count > 0) { return(SpriteSheets.First().Value); } return(null); }