/// <summary> /// Gets a list of sprite directions fgor this person object: /// </summary> /// <param name="rootpath">The root path to find the spriteset with.</param> /// <returns>A list of spriteset directions.</returns> public string[] GetSpriteDirections(string rootpath) { using (Spriteset s = new Spriteset()) { if (s.Load(rootpath + "/spritesets/" + Spriteset)) { return s.GetDirections(); } } return null; }