Implement runtime refresh for NPC collections

This commit is contained in:
2026-04-27 16:31:00 +02:00
parent 98b76bde7e
commit 84054e1908

View File

@@ -193,6 +193,7 @@ import {
import {
commitRuntimeScheduleSyncResult,
createRuntimeScheduleSyncContext,
refreshRuntimeNpcCollections,
syncRuntimeSceneScheduleToClock,
type RuntimeScheduleSyncContext
} from "./runtime-schedule-sync";
@@ -5251,6 +5252,14 @@ export class RuntimeHost {
}
}
private refreshRuntimeNpcCollections() {
if (this.runtimeScene === null) {
return;
}
refreshRuntimeNpcCollections(this.runtimeScene);
}
private refreshCollisionWorldForNpcSchedule() {
if (this.runtimeScene === null) {
return;