Last active
June 13, 2018 01:42
-
-
Save Jire/34b481b31cab969f7d7461ec44fa343c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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