Skip to main content
Defined in: modules/editor/src/protocol.ts:8 Raw editor bridge (RunOptions.editor), supplied by whoever starts the app under an editor host. EditorLibrary turns this pair into the single Context.editor facade every library sees.

Properties

fromEditor

fromEditor: EventEmitter
Defined in: modules/editor/src/protocol.ts:12 Editor → engine channel. Drained by EditorLibrary at the start of every tick.

serializeLogValue?

optional serializeLogValue?: (value) => EditorLogValue
Defined in: modules/editor/src/protocol.ts:19 Snapshots a logged value in the editor’s format, at the moment it is logged. Supplied by a host that runs the game in its own page (the editor runs clients this way), which owns the format. Without it, log events carry text only, even when the editor asks for values.

Parameters

value
unknown

Returns

EditorLogValue

toEditor

toEditor: EventEmitter
Defined in: modules/editor/src/protocol.ts:10 Engine → editor channel.