Object-ified console commands (singleton!)

Former-commit-id: d04fc939a659fc4a6b952d64894bd28edf97bc38
Former-commit-id: 6c20526f3bdda2d9d08dc156b3b0fe271e89bffb
This commit is contained in:
Song Minjae
2016-12-14 00:28:09 +09:00
parent 58ca0d006a
commit 6571bf5038
38 changed files with 204 additions and 214 deletions

View File

@@ -9,7 +9,7 @@ import net.torvald.terrarum.Terrarum
/**
* Created by minjaesong on 16-03-05.
*/
class SpawnPhysTestBall : ConsoleCommand {
internal object SpawnPhysTestBall : ConsoleCommand {
@Throws(Exception::class)
override fun execute(args: Array<String>) {
if (args.size == 2) {
@@ -33,6 +33,6 @@ class SpawnPhysTestBall : ConsoleCommand {
}
override fun printUsage() {
Echo().execute("usage: spawnball [elasticity]")
Echo.execute("usage: spawnball [elasticity]")
}
}