27 lines
997 B
C#
27 lines
997 B
C#
using OpenRa.Game.Graphics;
|
|
|
|
namespace OpenRa.Game
|
|
{
|
|
class Cursor
|
|
{
|
|
CursorSequence sequence;
|
|
Cursor(string cursor)
|
|
{
|
|
sequence = SequenceProvider.GetCursorSequence(cursor);
|
|
}
|
|
|
|
public Sprite GetSprite(int frame) { return sequence.GetSprite(frame); }
|
|
public int2 GetHotspot() { return sequence.Hotspot; }
|
|
|
|
public static Cursor None { get { return null; } }
|
|
public static Cursor Default { get { return new Cursor("default"); } }
|
|
public static Cursor Move { get { return new Cursor("move"); } }
|
|
public static Cursor Select { get { return new Cursor("select"); } }
|
|
public static Cursor MoveBlocked { get { return new Cursor("move-blocked"); } }
|
|
public static Cursor Attack { get { return new Cursor("attack"); } }
|
|
public static Cursor Deploy { get { return new Cursor("deploy"); } }
|
|
public static Cursor Enter { get { return new Cursor("enter"); } }
|
|
public static Cursor DeployBlocked { get { return new Cursor("deploy-blocked"); } }
|
|
}
|
|
}
|