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); 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); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.

Constructors 1
new(_fallback: SerializationRegistry | null): SerializationRegistry
Methods 2
hasType(typeName: string): boolean
register(typeName: string, ctor: SceneNodeConstructor<T>, serializer: NodeSerializer<T>): void
Source