pub enum Stage {
World,
Npcs,
Classes,
QuestPlan,
Quests,
Dialogue,
WorldEdits,
GeometryBrief,
LayoutGraph,
SitePlan,
DetailPlan,
Design,
}Expand description
Which stage a document belongs to.
Variants§
World
Stage 1.
Npcs
Stage 2.
Classes
Stage 3.
QuestPlan
Stage 4.
Quests
Stage 5.
Dialogue
Stage 6.
WorldEdits
Stage 7 (optional; DSL v0.6, spec-0017): the map-editor edit script.
GeometryBrief
The whole map’s written brief, reduced to numbers (optional; DSL v0.13, spec-0049 §4.2). Named, never renumbered into the 1..7 sequence: it is a different pipeline’s document and the two orderings are unrelated.
LayoutGraph
The campaign’s space as a graph, before any coordinate exists (optional; DSL v0.13, spec-0049 §3).
SitePlan
The geometric embedding of that graph — the whole map’s design of record (optional; DSL v0.14, spec-0049 §4).
DetailPlan
Which piece stands in which of the plan’s places (optional; DSL v0.15,
spec-0050). Named, never renumbered, for the reason GeometryBrief
gives.
Design
The approved design’s record (optional; DSL v0.22, spec-0061): one row per approved reference image, each naming the sky the picture was drawn under. Named, never renumbered — it is the design step’s document, and the design step is not a position in the 1..7 sequence.
Implementations§
Source§impl Stage
impl Stage
Sourcepub const ALL: [Stage; 12]
pub const ALL: [Stage; 12]
Every stage, in document order. The one enumeration.
Hand-written stage lists are how a new document escapes a gate that was
written before it existed: crates/dsl/tests/gate_consumers.rs walked
seven stages by name, so a schema object declaring part of the gate in an
eighth would have been invisible to the check whose whole subject is that
no such object exists. Anything that means “over the stages” reads this.
Trait Implementations§
impl Copy for Stage
Source§impl<'de> Deserialize<'de> for Stage
impl<'de> Deserialize<'de> for Stage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Stage
Source§impl JsonSchema for Stage
impl JsonSchema for Stage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more