Commands beta ā
Interface of @v12-engine/engine
ts
export interface CommandsThe commands a world takes, by who defines them: the engine's (core), and each pack's, which adds its own by declaration merging, as the heroes pack does:
ts
declare module '@v12-engine/engine' {
interface Commands {
mypack: (typeof myPackCommands)[number]
}
}Members ā
core ā
ts
core: (typeof coreCommands)[number];The engine's commands, as a union of their types; a game or pack adds its own by merging into Commands