Skip to content

GameFileDef beta ​

Interface of @v12-engine/engine

ts
export interface GameFileDef<T>

A file of the game's own data, and how it is read

Members ​

data ​

ts
readonly data: unknown;

What the file says, as the game was built with it (an imported JSON file)

id ​

ts
readonly id: string;

Unique in the game: the file's name, as the editor writes it (waves.json)

read ​

ts
read(data: unknown): T;

What the rules read of it: checked, with what is not of its shape left out