API reference

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

C

classSerializationRegistry

@codexo/exojs / core / stable

Bidirectional name ↔ constructor ↔ NodeSerializer registry backing the scene serializer. Serialize resolves a node to its serializer by walking the constructor's prototype chain (so a subclass without its own registration inherits the nearest registered base serializer - nearest across this registry *and* its fallback, never the nearest one this registry happens to know); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.

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

Bidirectional name ↔ constructor ↔ NodeSerializer registry backing the scene serializer.

Serialize resolves a node to its serializer by walking the constructor's prototype chain (so a subclass without its own registration inherits the nearest registered base serializer - nearest across this registry *and* its fallback, never the nearest one this registry happens to know); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.

Constructors1
new(_fallback: SerializationRegistry | null): SerializationRegistry
Methods2
hasType(typeName: string): boolean
Returns true if a serializer is registered under typeName.
Register serializer for ctor under typeName. Re-registering the same (typeName, ctor) pair overwrites silently; registering an existing typeName against a **different** constructor throws.
Source