Skip to main content

Module wir

Module wir 

Source
Expand description

The Workshop IR model.

Workshop IR models the lower-level workshop program structure: variables with indexes, subroutines with indexes, and rules with events, conditions, actions, and values. It is locale-independent (canonical catalog ids only, never localized spellings) and protocol-agnostic.

Name policy: call/value name fields keep the canonical catalog ids (countOf, wait, createBeamEffect); mapping those to localized Workshop presentation spellings is an emission concern.

Extracted from the Wright-authored wright-ir crate (the wir, settings, and source modules); see docs/provenance.md.

Modules§

error
Structured IR errors.

Structs§

CensusCapability
IfBranch
One condition/body pair of an If action.
Program
The Workshop IR program: tables and arenas produced by lowering.
Rule
A workshop rule.
ValueNode
A workshop value (expression) node with its source span.
WorkshopSubroutine
A workshop subroutine with its assigned index.
WorkshopVariable
A workshop variable (global or player) with its assigned index.

Enums§

Action
A workshop action.
CensusCapabilityKind
The WIR-owned capability surface used by the canonical census. Providers do not contribute source-language inventories to this registry.
Event
A workshop event.
EventTarget
The player filter attached to a player-scoped Workshop event.
EventTeam
The team filter attached to a player-scoped Workshop event.
ModifyOp
The modify operators of the v0.1 surface.
PlayerEventKind
A non-ongoing player event identity.
Value
A workshop value (expression).

Constants§

CENSUS_CAPABILITIES

Type Aliases§

ActionId
A typed ID referencing an Action in the action arena.
GlobalVarId
A typed ID referencing a WorkshopVariable in the global table.
PlayerVarId
A typed ID referencing a WorkshopVariable in the player table.
RuleId
A typed ID referencing a Rule.
SubroutineId
A typed ID referencing a WorkshopSubroutine.
ValueId
A typed ID referencing a ValueNode in the value arena.