Implement runtime refresh for NPC collections
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user