-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirection.lua
More file actions
35 lines (35 loc) · 1 KB
/
Direction.lua
File metadata and controls
35 lines (35 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Direction = {
---@type Direction
LEFT = {
vector = {0, 0, 0},
board_side = "bottom",
clockwise = function() return Direction.UP end,
anticlockwise = function() return Direction.DOWN end
},
---@type Direction
UP = {
vector = {0, 90, 0},
board_side = "left",
clockwise = function() return Direction.RIGHT end,
anticlockwise = function() return Direction.LEFT end
},
---@type Direction
RIGHT = {
vector = {0, 180, 0},
board_side = "top",
clockwise = function() return Direction.DOWN end,
anticlockwise = function() return Direction.UP end
},
---@type Direction
DOWN = {
vector = {0, 270, 0},
board_side = "right",
clockwise = function() return Direction.LEFT end,
anticlockwise = function() return Direction.RIGHT end
}
}
---@class Direction
---@field vector table
---@field board_side string
---@field clockwise function
---@field anticlockwise function