Add runtime global state interfaces and default creation function
This commit is contained in:
24
src/runtime-three/runtime-global-state.ts
Normal file
24
src/runtime-three/runtime-global-state.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export interface RuntimeSceneTransitionRecord {
|
||||
fromSceneId: string;
|
||||
fromSceneName: string;
|
||||
toSceneId: string;
|
||||
toSceneName: string;
|
||||
viaExitEntityId: string;
|
||||
targetEntryEntityId: string;
|
||||
}
|
||||
|
||||
export interface RuntimeGlobalState {
|
||||
flags: Record<string, boolean>;
|
||||
activeMusicCueId: string | null;
|
||||
transitionCount: number;
|
||||
lastSceneTransition: RuntimeSceneTransitionRecord | null;
|
||||
}
|
||||
|
||||
export function createDefaultRuntimeGlobalState(): RuntimeGlobalState {
|
||||
return {
|
||||
flags: {},
|
||||
activeMusicCueId: null,
|
||||
transitionCount: 0,
|
||||
lastSceneTransition: null
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user