Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions packages/core/src/EngineEventType.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/**
* Engine event type.
*/
export enum EngineEventType {
export const EngineEventType = {
/** Dispatched when the engine starts running. */
Run = "run",
Run: "run",
/** Dispatched when the engine shuts down. */
Shutdown = "shutdown",
Shutdown: "shutdown",
/** Dispatched when the graphic device is lost. */
DeviceLost = "devicelost",
DeviceLost: "devicelost",
/** Dispatched when the graphic device is restored. */
DeviceRestored = "devicerestored"
}
DeviceRestored: "devicerestored"
} as const;

export type EngineEventType = (typeof EngineEventType)[keyof typeof EngineEventType];
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Loading