Skip to content

@v12-engine/client/vite ​

Core ​

What a game meets first.

NameKindWhat
assetsPackagefunctionServes @v12-engine/assets to a game while it is developed, and copies what it uses into a build. See the top of this file, and AssetsPackageOptions

Advanced ​

Interfaces ​

NameWhat
AssetsPackageOptions betaWhat a game takes of @v12-engine/assets, and what its build copies (assetsPackage)
PackageFile betaA file of the package, as a game sees it: by the path it is served at, its group, its kind and whose it is
PackageFiles betaWhat the plugin knows of the package, for the editor's plugin and for tests

Functions ​

NameWhat
packageFiles betaThe package's files a game takes, read from its manifest and its index
usedFiles betaThe files of the package a game uses, as far as its code and maps say: a model, a picture by its path in its folder ('characters/knight.glb'), by the index's name for it (characters.models.knight), or by its file's name in quotes ('knight'), as code that makes the path from a name has it ( units/${name}.glb ); a track by its name in quotes ('town', as a map's music says it). Every sound: the client plays some by their names itself (the interface's clicks). Generous on purpose: a file copied that is not used costs its size, one not copied that is used is a game that breaks