Skip to main content

Module program

Module program 

Source
Expand description

Canonical Workshop program concepts.

Structs§

Condition
A rule condition. Conditions remain distinct from general value expressions.
MappedText
Workshop text together with the SourceMap of its authored origin: the workshop-rs/mapped-text-v1 artifact.
Program
A complete Workshop program built from Workshop concepts.
Rule
A Workshop rule with explicit conditions and a linear action stream.
SourceMap
A source mapping detached from a Program.
Subroutine
A Workshop subroutine declaration.
Variable
A Workshop global or player variable declaration.

Enums§

Action
A Workshop action line. Control flow is represented in the same order as the Workshop source, including its explicit End lines.
Event
A Workshop event identity and its native filters.
EventTarget
EventTeam
ModifyOp
The operation used by a Workshop variable modification action.
PlayerEventKind
A non-ongoing player event identity.
SourceMapError
A failure while decoding or applying a SourceMap.
SourceMappingError
A failure while attaching source mappings to a public Program.
Value
A composable Workshop value expression.

Constants§

MAPPED_TEXT_V1
Identifier of the canonical mapped Workshop artifact: Workshop text plus a SourceMap, serialized by MappedText::to_json.
TEXT_V1
Identifier of the canonical Workshop text artifact: the Workshop text alone.