taking screenshot

This commit is contained in:
minjaesong
2019-01-15 16:10:40 +09:00
parent 797b81d64b
commit a297fc3dfe
7 changed files with 79 additions and 27 deletions

View File

@@ -0,0 +1,13 @@
package net.torvald.terrarum.console
import net.torvald.terrarum.AppLoader
object TakeScreenshot: ConsoleCommand {
override fun execute(args: Array<String>) {
AppLoader.requestScreenshot()
}
override fun printUsage() {
Echo("Takes screenshot and save it to the default directory as 'screenshot.tga'")
}
}