API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSerializationRegistry
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); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.
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); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.
new(_fallback: SerializationRegistry | null): SerializationRegistry hasType(typeName: string): boolean register(typeName: string, ctor: SceneNodeConstructor<T>, serializer: NodeSerializer<T>): void