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