API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceDeserializeContext
@codexo/exojs / core / stable
Context handed to NodeSerializer.read. Mirror of SerializeContext for the inverse direction: child recursion and asset lookup. The framework applies the common fields after `read` returns, so a serializer only constructs the node and sets its type-specific fields.
2
props
2
methods
0
events
Import
import { DeserializeContext } from '@codexo/exojs'Context handed to NodeSerializer.read. Mirror of SerializeContext for the inverse direction: child recursion and asset lookup. The framework applies the common fields after `read` returns, so a serializer only constructs the node and sets its type-specific fields.
Methods2
readNode(data: 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…): SceneNodeTransform-bearing leaf in the scene-graph hierarchy. Carries position, rotation, scale, skew and origin. Implements Collidable so any node can participate dire…Fully deserialize a child node (inverse of SerializeContext.writeNode).
resolveAsset(source: null | string | undefined, type: AssetConstructorAny abstract or concrete constructor whose instances are the resource an asset type produces (e.g. `typeof Texture`, `typeof Sound`). Constructors act as the d…<T>): T | nullResolve a serialized asset source key back to a loaded resource of type, or null if the source is missing/unset or the asset was not pre-loaded (a one-time warning is emitted in the not-loaded case).
Properties2
loader: Loader | nullThe loader used to resolve asset references, or null if none is available.
version: numberFormat version of the document being read (after migration).
Source