Skip to content

Commit 05a79d9

Browse files
TomekRDxeruf
authored andcommitted
feat(sdk): completed vectors for directions in Direction.kt
1 parent 07dd82b commit 05a79d9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

sdk/src/main/server-api/sc/api/plugins/Direction.kt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ import kotlin.random.Random
66
@XStreamAlias(value = "direction")
77
enum class Direction(val vector: Vector): IVector by vector {
88
UP(Vector(0, 1)),
9-
// TODO
10-
UP_RIGHT
11-
RIGHT
12-
DOWN_RIGHT
13-
DOWN
14-
DOWN_LEFT
15-
LEFT
16-
UP_LEFT
9+
UP_RIGHT(Vector(1, 1)),
10+
RIGHT(Vector(1, 0)),
11+
DOWN_RIGHT(Vector(1, -1)),
12+
DOWN(Vector(0, -1)),
13+
DOWN_LEFT(Vector(-1, -1)),
14+
LEFT(Vector(-1, 0)),
15+
UP_LEFT(Vector(1, -1));
1716

1817
companion object {
1918
// TODO

0 commit comments

Comments
 (0)