GetDirections() public method

Returns an array of the directions in this spriteset.
public GetDirections ( ) : string[]
return string[]
コード例 #1
0
ファイル: Entity.cs プロジェクト: Radnen/spherestudio
 /// <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;
 }