API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceSerializeContext

@codexo/exojs / core / stable

Context handed to NodeSerializer.write. Carries the framework services a type serializer needs: recursion into children and asset-key resolution. The framework writes the `SceneNode`/`RenderNode`/`Drawable` common fields and the `type` tag itself - a serializer only returns its own type-specific fields.

2
props
2
methods
0
events
Import
import { SerializeContext } from '@codexo/exojs'

Context handed to NodeSerializer.write. Carries the framework services a type serializer needs: recursion into children and asset-key resolution. The framework writes the `SceneNode`/`RenderNode`/`Drawable` common fields and the `type` tag itself - a serializer only returns its own type-specific fields.

Methods2
keyFor(resource: null | object | undefined): null | string
Resolve a loaded asset object to the loader source key it was loaded under, or null for runtime-created / unkeyed resources (a one-time warning is emitted in that case).
Properties2
loader: Loader | null
The loader used to resolve asset references, or null if none is available.
version: number
Format version being written (SERIALIZATION_VERSION).
Source