Move stub.kt to main game module

This commit is contained in:
Gary Tierney
2017-05-31 21:04:13 +01:00
parent 258fc6c97b
commit eed32efcf9
3 changed files with 33 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
/**
* NOTE: This file is a stub, intended only for use within an IDE. It should be updated
* each time [org.apollo.game.plugin.kotlin.KotlinPluginScript] has a new method added to it.
*
* Until IntelliJ IDEA starts to support ScriptTemplateDefinitions this is
* required to resolve references within plugin code.
*/
import org.apollo.game.model.World
import org.apollo.game.plugin.PluginContext
import org.apollo.game.plugin.kotlin.*
import org.apollo.net.message.Message
import kotlin.reflect.KClass
fun <T : Message> on(type: () -> KClass<T>): KotlinMessageHandler<T> {
null!!
}
fun start(callback: (World) -> Unit) {
}
fun stop(callback: (World) -> Unit) {
}