Remove plugin script stub

This commit is contained in:
Gary Tierney
2018-03-27 21:49:22 +01:00
parent 179c35fc2d
commit 5d77ed5e4b
2 changed files with 0 additions and 36 deletions
-8
View File
@@ -12,14 +12,6 @@ buildscript {
apply plugin: 'kotlin'
sourceSets {
main {
kotlin {
exclude 'stub.kt'
}
}
}
allprojects {
it.plugins.withId('kotlin') {
kotlin { experimental { coroutines 'enable' } }
-28
View File
@@ -1,28 +0,0 @@
/**
* 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.command.Command
import org.apollo.game.message.impl.ButtonMessage
import org.apollo.game.model.World
import org.apollo.game.model.entity.setting.PrivilegeLevel
import org.apollo.game.model.event.Event
import org.apollo.game.model.event.PlayerEvent
import org.apollo.game.plugin.kotlin.KotlinEventHandler
import org.apollo.game.plugin.kotlin.KotlinPlayerHandlerProxyTrait
import org.apollo.net.message.Message
import kotlin.reflect.KClass
fun <T : Message> on(type: () -> KClass<T>): KotlinPlayerHandlerProxyTrait<T> = null!!
fun <T : PlayerEvent> on_player_event(type: () -> KClass<T>): KotlinPlayerHandlerProxyTrait<T> = null!!
fun <T : Event> on_event(type: () -> KClass<T>): KotlinEventHandler<T> = null!!
fun on_command(command: String, privileges: PrivilegeLevel): KotlinPlayerHandlerProxyTrait<Command> = null!!
fun on_button(button: Int): KotlinPlayerHandlerProxyTrait<ButtonMessage> = null!!
fun start(callback: (World) -> Unit) {}
fun stop(callback: (World) -> Unit) = {}