diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-04 10:07:03 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-04 10:07:03 +0800 |
| commit | e92177bdc3e97e7e7cc166bd9d76082197297244 (patch) | |
| tree | e7c6ecbc10c245122df1c42ffce4b3ccf0dad23f /objects/Direction.lua | |
| parent | ba308f4edd76de2eb802843959c8c1ab50760eac (diff) | |
refactor: add Way / Ways global
Diffstat (limited to 'objects/Direction.lua')
| -rw-r--r-- | objects/Direction.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/objects/Direction.lua b/objects/Direction.lua index 137f970..08efaac 100644 --- a/objects/Direction.lua +++ b/objects/Direction.lua @@ -10,3 +10,12 @@ OppositeDirection = { [Direction.UP] = Direction.DOWN, [Direction.DOWN] = Direction.UP } + +Ways = {"lr","rl","tb","bt"} + +Way = { + lr = {Direction.LEFT, Direction.RIGHT}, + rl = {Direction.RIGHT, Direction.LEFT}, + tb = {Direction.TOP, Direction.BOTTOM}, + bt = {Direction.BOTTOM, Direction.TOP} +} |
