mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
Former-commit-id: d04fc939a659fc4a6b952d64894bd28edf97bc38 Former-commit-id: 6c20526f3bdda2d9d08dc156b3b0fe271e89bffb
32 lines
729 B
Kotlin
32 lines
729 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.terrarum.langpack.Lang
|
|
import net.torvald.terrarum.Terrarum
|
|
import net.torvald.terrarum.ui.Notification
|
|
|
|
/**
|
|
* Created by minjaesong on 16-01-23.
|
|
*/
|
|
internal object SetBulletin : ConsoleCommand {
|
|
override fun execute(args: Array<String>) {
|
|
val testMsg = arrayOf(
|
|
Lang["ERROR_SAVE_CORRUPTED"],
|
|
Lang["MENU_LABEL_CONTINUE_QUESTION"]
|
|
)
|
|
send(testMsg)
|
|
}
|
|
|
|
override fun printUsage() {
|
|
|
|
}
|
|
|
|
/**
|
|
* Actually send notifinator
|
|
* @param message real message
|
|
*/
|
|
fun send(message: Array<String>) {
|
|
Terrarum.ingame.sendNotification(message)
|
|
println("sent notifinator")
|
|
}
|
|
}
|