Chemdah 开发者文档:自定义对话主题
来自Purtmars Wikipedia —— 普特莫斯维基
目录
- Chemdah
- 开始
- 基本
- 事件
- ink.ptms.chemdah.api.event.collect.ConversationEvents
- ink.ptms.chemdah.api.event.collect.ObjectiveEvents
- ink.ptms.chemdah.api.event.collect.PlayerEvents
- ink.ptms.chemdah.api.event.collect.QuestEvents
- ink.ptms.chemdah.api.event.collect.TemplateEvents
- ink.ptms.chemdah.api.event.InferEntityHookEvent
- ink.ptms.chemdah.api.event.InferItemHookEvent
- ink.ptms.chemdah.api.event.PartyHookEvent
- 对话相关
- 数据相关
- 任务相关
对话主题
注册自定义对话主题需要分别实现 Theme 与 ThemeSettings 类,在本章文档中我们会从零开始注册一个简单的聊天框对话主题。
1 class ThemeDemo : Theme<ThemeDemoSettings>() {
2
3 override fun npcTalk(session: Session, message: List<String>, canReply: Boolean): CompletableFuture<Void> {
4 TODO("Not yet implemented")
5 }
6 }
7
8 class ThemeDemoSettings(root: ConfigurationSection) : ThemeSettings(root) {
9
10 }