SwatchSpec
@zylem/game-lib / catalog / SwatchSpec
Interface: SwatchSpec
Defined in: packages/bridge/src/protocol.ts:132
A configured shader or behavior, described by what it resolves to rather
than by a closure. source is the export name (createLava,
ThrusterBehavior) that the game side registered as a swatch source, so the
live path and generated code agree on one identifier.
Properties
kind
kind:
SwatchKind
Defined in: packages/bridge/src/protocol.ts:133
props
props:
Record<string,unknown>
Defined in: packages/bridge/src/protocol.ts:137
Factory options (shader) or overrides over defaultOptions (behavior).
source
source:
string
Defined in: packages/bridge/src/protocol.ts:135
Shader factory or behavior descriptor export name.