diff --git a/src/runtime-three/runtime-global-state.ts b/src/runtime-three/runtime-global-state.ts new file mode 100644 index 00000000..6c2b4728 --- /dev/null +++ b/src/runtime-three/runtime-global-state.ts @@ -0,0 +1,24 @@ +export interface RuntimeSceneTransitionRecord { + fromSceneId: string; + fromSceneName: string; + toSceneId: string; + toSceneName: string; + viaExitEntityId: string; + targetEntryEntityId: string; +} + +export interface RuntimeGlobalState { + flags: Record; + activeMusicCueId: string | null; + transitionCount: number; + lastSceneTransition: RuntimeSceneTransitionRecord | null; +} + +export function createDefaultRuntimeGlobalState(): RuntimeGlobalState { + return { + flags: {}, + activeMusicCueId: null, + transitionCount: 0, + lastSceneTransition: null + }; +}