Skip to content

PreloadWhat beta ​

Interface of @v12-engine/client

ts
export interface PreloadWhat

What to load ahead (GameClient.preload): each list is optional, and only what is named is loaded

Members ​

models ​

ts
models?: readonly (string | ModelDef)[];

Unit types, whose models (its other looks, its shot, its stages) are loaded; or models by themselves

sounds ​

ts
sounds?: readonly string[];

Sounds by name, every take of each

textures ​

ts
textures?: readonly string[];

Pictures by address, fetched and decoded: a splash, an icon sheet, a texture a game's own code draws with