Skip to content

defineGameFile ​

Function of @v12-engine/engine

ts
export declare function defineGameFile<T>(def: GameFileDef<T>): GameFileDef<T>;

A file of the game's own data, for Rules.files: defineGameFile({ id: 'waves.json', data: wavesFile, read: readWaves }), read by the rules with world.registry.file(waves)