Skip to content

HotTarget beta ​

Interface of @v12-engine/client

ts
export interface HotTarget

What is live in the page of a game, to take a new version of it: a game played, an editor

Members ​

files ​

ts
files?(changed: ChangedFiles): void | Promise<void>;

Takes models' and textures' files that changed on disk (hotFiles): loaded anew, and everything drawn with them drawn again

game ​

ts
readonly game: string;

The game's id: with mods, the base's and theirs (melee+goldRush)

module ​

ts
module?(): Rules | null | undefined;

The game's rules it plays now, to know what they are made of (a base and mods, composeGame)

rules ​

ts
rules?(game: Rules): void;

Takes a new version of the game's rules: its definitions, the code of what they do, its rules

view ​

ts
view?(view: GameView): void;

Takes a new version of the game's view: what its types look like, sound like, are pictured as and say