19 lines
753 B
C#
19 lines
753 B
C#
using System.Numerics;
|
|
|
|
namespace Gameboard.ShogiUI.BoardState
|
|
{
|
|
public static class Direction
|
|
{
|
|
public static readonly Vector2 Up = new Vector2(0, 1);
|
|
public static readonly Vector2 Down = new Vector2(0, -1);
|
|
public static readonly Vector2 Left = new Vector2(-1, 0);
|
|
public static readonly Vector2 Right = new Vector2(1, 0);
|
|
public static readonly Vector2 UpLeft = new Vector2(1, 1);
|
|
public static readonly Vector2 UpRight = new Vector2(-1, 1);
|
|
public static readonly Vector2 DownLeft = new Vector2(-1, -1);
|
|
public static readonly Vector2 DownRight = new Vector2(1, -1);
|
|
public static readonly Vector2 KnightLeft = new Vector2(-1, 2);
|
|
public static readonly Vector2 KnightRight = new Vector2(1, 2);
|
|
}
|
|
}
|