From 1543e1fbbd31761dfcac2f6adc7580368be8a4ae Mon Sep 17 00:00:00 2001 From: Demetrius Kanios Date: Mon, 10 Aug 2026 13:08:32 -0700 Subject: [PATCH] IPC and AI goals --- src/wasmWasiMain/kotlin/plugin/Plugin.kt | 26 ++++++++++++++++++++++++ wit | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/wasmWasiMain/kotlin/plugin/Plugin.kt b/src/wasmWasiMain/kotlin/plugin/Plugin.kt index 15d96c8..81f2bc0 100644 --- a/src/wasmWasiMain/kotlin/plugin/Plugin.kt +++ b/src/wasmWasiMain/kotlin/plugin/Plugin.kt @@ -34,6 +34,32 @@ class PluginRootFunctionsExportsImpl { override fun handleTask(handlerId: UInt, server: Server.Server) { TODO("Not yet implemented") } + + override fun handleIpcMessage(sender: String, message: List): Result> { + return Result.failure( + pumpkin.runtime.ComponentException("This plugin cannot recieve messages.") + ); + } + + override fun handleAiGoalCanStart(goalId: UInt, server: Server.Server, entity: World.Entity): Boolean { + TODO("Not yet implemented"); + } + + override fun handleAiGoalShouldContinue(goalId: UInt, server: Server.Server, entity: World.Entity): Boolean { + TODO("Not yet implemented"); + } + + override fun handleAiGoalStart(goalId: UInt, server: Server.Server, entity: World.Entity): Unit { + TODO("Not yet implemented"); + } + + override fun handleAiGoalTick(goalId: UInt, server: Server.Server, entity: World.Entity): Unit { + TODO("Not yet implemented"); + } + + override fun handleAiGoalStop(goalId: UInt, server: Server.Server, entity: World.Entity): Unit { + TODO("Not yet implemented"); + } } } diff --git a/wit b/wit index 9e87f50..160251f 160000 --- a/wit +++ b/wit @@ -1 +1 @@ -Subproject commit 9e87f503d03644569117906cf0cc7f88dfa36194 +Subproject commit 160251fb0b15ad529bf7c4939140bb5fa0c07035