GetDirections() public method

Returns an array of the directions in this spriteset.
public GetDirections ( ) : string[]
return string[]
示例#1
0
 /// <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;
 }