1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00
kawari/resources/scripts/commands/Commands.lua
thedax 6d99bef66c
Refactor and reorganize numerous Lua systems: (#63)
-Global.lua is no longer a catch-all dumping ground for registering actions and events
Instead, Global.lua will actually contain useful global constants and functions

-Init.lua will take over the role of being the initial script run when doing reloads or booting the servers
-Actions.lua will take over registering all actions
-Items.lua will take over registering all items
-Commands.lua will take over registering all text commands

-Events.lua will take over registering all warps, openings/quests, aetherytes, etc.
To this end, event ids now live in organized tables to reduce error-prone copy paste clutter

If we get enough actions, items or commands, we can move those to tables too.
2025-06-25 13:25:48 -04:00

16 lines
828 B
Lua

DBG_DIR = "commands/debug/"
-- Please keep these in alphabetical order!
registerCommand("classjob", DBG_DIR.."ClassJob.lua")
registerCommand("festival", DBG_DIR.."Festival.lua")
registerCommand("invis", DBG_DIR.."ToggleInvisibility.lua")
registerCommand("nudge", DBG_DIR.."Nudge.lua")
registerCommand("ost", DBG_DIR.."OnScreenTest.lua")
registerCommand("permtest", DBG_DIR.."PermissionTest.lua")
registerCommand("setpos", DBG_DIR.."SetPos.lua")
registerCommand("setspeed", DBG_DIR.."SetSpeed.lua")
registerCommand("teri", DBG_DIR.."ChangeTerritory.lua")
registerCommand("unlock", DBG_DIR.."Unlock.lua")
registerCommand("unlockaetheryte", DBG_DIR.."UnlockAetheryte.lua")
registerCommand("wireframe", DBG_DIR.."ToggleWireframe.lua")