__init hook.
Remarks
app and assets are intentionally absent here: app doesn’t exist yet
(the tick loop hasn’t started), and assets isn’t populated until every
library has finished initializing. Libraries that need raw files during
__init (e.g. the built-in asset library) read files directly.
Properties
container?
Defined in: packages/common/src/context/init-context.type.ts:40optionalcontainer?:HTMLDivElement
env
env:Defined in: packages/common/src/context/init-context.type.ts:38Record<string,string|undefined>
files
files:Defined in: packages/common/src/context/init-context.type.ts:39Map<string,string>
vars
vars: VarsContext
Defined in: packages/common/src/context/init-context.type.ts:37
viewport?
Defined in: packages/common/src/context/init-context.type.ts:42 Screen/game viewport. Client-only;optionalviewport?:ViewportContext
undefined on the server.