API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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 | stringResolve 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).
writeNode(node: SceneNodeTransform-bearing leaf in the scene-graph hierarchy. Carries position, rotation, scale, skew and origin. Implements Collidable so any node can participate dire…): SerializedNodePlain-old-JSON description of a single scene-graph node. Always carries a `type` tag (the registered type name) plus an open set of common transform/visual fie…Fully serialize a child node - writes its type tag, common fields, and type-specific fields. Use this from container-like serializers to recurse.
Properties2
loader: Loader | nullThe loader used to resolve asset references, or null if none is available.
version: numberFormat version being written (SERIALIZATION_VERSION).
Source