mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 21:44:05 +09:00
Object-ified console commands (singleton!)
Former-commit-id: d04fc939a659fc4a6b952d64894bd28edf97bc38 Former-commit-id: 6c20526f3bdda2d9d08dc156b3b0fe271e89bffb
This commit is contained in:
@@ -10,44 +10,44 @@ import java.util.HashMap
|
||||
object CommandDict {
|
||||
|
||||
internal var dict: HashMap<String, ConsoleCommand> = hashMapOf(
|
||||
Pair("echo", Echo()),
|
||||
Pair("error", Error()),
|
||||
Pair("setav", SetAV()),
|
||||
Pair("qqq", QuitApp()),
|
||||
Pair("codex", CodexEdictis()),
|
||||
Pair("export", ExportMap()),
|
||||
Pair("gc", ForceGC()),
|
||||
Pair("getav", GetAV()),
|
||||
Pair("getlocale", GetLocale()),
|
||||
Pair("togglenoclip", ToggleNoClip()),
|
||||
Pair("nc", ToggleNoClip()),
|
||||
Pair("setlocale", SetLocale()),
|
||||
Pair("zoom", Zoom()),
|
||||
Pair("teleport", TeleportPlayer()),
|
||||
Pair("tp", TeleportPlayer()),
|
||||
Pair("cat", CatStdout()),
|
||||
Pair("exportav", ExportAV()),
|
||||
Pair("setgl", SetGlobalLightOverride()),
|
||||
Pair("getfaction", GetFactioning()),
|
||||
Pair("auth", Terrarum.ingame.auth),
|
||||
Pair("spawnball", SpawnPhysTestBall()),
|
||||
Pair("batch", Batch()),
|
||||
Pair("settime", SetTime()),
|
||||
Pair("gettime", GetTime()),
|
||||
Pair("settimedelta", SetTimeDelta()),
|
||||
Pair("help", Help()),
|
||||
Pair("version", Version()),
|
||||
Pair("seed", Seed()),
|
||||
Pair("testgetlight", TestGetLight()),
|
||||
Pair("println", EchoConsole()),
|
||||
Pair("inventory", Inventory()),
|
||||
Pair("echo", Echo),
|
||||
Pair("error", Error),
|
||||
Pair("setav", SetAV),
|
||||
Pair("qqq", QuitApp),
|
||||
Pair("codex", CodexEdictis),
|
||||
Pair("export", ExportMap),
|
||||
Pair("gc", ForceGC),
|
||||
Pair("getav", GetAV),
|
||||
Pair("getlocale", GetLocale),
|
||||
Pair("togglenoclip", ToggleNoClip),
|
||||
Pair("nc", ToggleNoClip),
|
||||
Pair("setlocale", SetLocale),
|
||||
Pair("zoom", Zoom),
|
||||
Pair("teleport", TeleportPlayer),
|
||||
Pair("tp", TeleportPlayer),
|
||||
Pair("cat", CatStdout),
|
||||
Pair("exportav", ExportAV),
|
||||
Pair("setgl", SetGlobalLightOverride),
|
||||
Pair("getfaction", GetFactioning),
|
||||
Pair("auth", Authenticator),
|
||||
Pair("spawnball", SpawnPhysTestBall),
|
||||
Pair("batch", Batch),
|
||||
Pair("settime", SetTime),
|
||||
Pair("gettime", GetTime),
|
||||
Pair("settimedelta", SetTimeDelta),
|
||||
Pair("help", Help),
|
||||
Pair("version", Version),
|
||||
Pair("seed", Seed),
|
||||
Pair("testgetlight", TestGetLight),
|
||||
Pair("println", EchoConsole),
|
||||
Pair("inventory", Inventory),
|
||||
|
||||
// Test codes
|
||||
Pair("bulletintest", SetBulletin()),
|
||||
Pair("gsontest", GsonTest()),
|
||||
Pair("tips", PrintRandomTips()),
|
||||
Pair("langtest", LangTest()),
|
||||
Pair("musictest", MusicTest())
|
||||
Pair("bulletintest", SetBulletin),
|
||||
Pair("gsontest", GsonTest),
|
||||
Pair("tips", PrintRandomTips),
|
||||
Pair("langtest", LangTest),
|
||||
Pair("musictest", MusicTest)
|
||||
)
|
||||
|
||||
operator fun get(commandName: String): ConsoleCommand {
|
||||
|
||||
Reference in New Issue
Block a user