ComponentCodec class abstract
Translates between a serialized ComponentSpec and a live Component of one type.
Codecs are registered in a FsceneComponentRegistry; the realizer and serializer dispatch through it. This is the seam that lets the format carry component types the core does not know about.
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
realize(
ComponentSpec spec, RealizeContext context) → Component? -
Builds a live component from
spec, or returns null when it cannot be realized in the given context (for example a mesh with no resource realizer). -
serialize(
Component component, SerializeContext context) → ComponentSpec? -
Serializes
componentto a ComponentSpec, or returns null if this codec does not handle that component instance. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited