Files
dusk/types/scene/scene.d.ts
T
2026-06-02 09:32:07 -05:00

28 lines
720 B
TypeScript

/**
* Copyright (c) 2026 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
/** Scene management — request scene transitions and query the active scene. */
interface SceneNamespace {
/** Type constant of the currently active scene, or 0 if none. */
readonly current: number;
/**
* Requests a scene transition. The change takes effect at the start of the
* next safe update tick (current scene is disposed, new scene is initialized).
*
* @example
* Scene.set(Scene.OVERWORLD);
*/
set(type: number): void;
readonly INITIAL: number;
readonly TEST: number;
readonly OVERWORLD: number;
}
declare var Scene: SceneNamespace;