Skip to content

Instantly share code, notes, and snippets.

@Jire
Last active June 13, 2018 01:42
Show Gist options
  • Save Jire/34b481b31cab969f7d7461ec44fa343c to your computer and use it in GitHub Desktop.
Save Jire/34b481b31cab969f7d7461ec44fa343c to your computer and use it in GitHub Desktop.
package ps.eden.server.game.content.dialogue
import ps.eden.server.game.node.entity.npc.NPC
/**
* @author Jire
*/
abstract class NPCDialogue(vararg applicableIDs: Int = intArrayOf(-1)) : Dialogue(*applicableIDs) {
override fun open(vararg args: Any?): Boolean {
if (args.isNotEmpty() && args[0] is NPC) {
npc = args[0] as NPC
return super.open(args)
}
return false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment