pub enum NarrativeFunction {
Revelation,
Escalation,
Confrontation,
Betrayal,
Alliance,
Discovery,
Loss,
ComicRelief,
Foreshadowing,
StatusChange,
Custom(String),
}Expand description
The core narrative function taxonomy.
Narrative function is the most important abstraction in the engine. It separates WHAT narratively is happening from HOW it’s expressed in a specific genre.
Each variant returns normalized pacing, valence, and intensity values that the grammar system uses to shape output.
Variants§
Revelation
Hidden information becomes known.
Escalation
Stakes or tension increase.
Confrontation
Two entities in direct opposition.
Betrayal
Trust is violated.
Alliance
Entities align interests.
Discovery
Something new is found or understood.
Loss
Something valued is taken or destroyed.
ComicRelief
Tension is broken with humor.
Foreshadowing
Future events are hinted at.
StatusChange
An entity’s position shifts.
Custom(String)
Game-defined narrative function.
Implementations§
Source§impl NarrativeFunction
impl NarrativeFunction
Sourcepub fn pacing(&self) -> f32
pub fn pacing(&self) -> f32
Returns a normalized pacing value (0.0 = slow/deliberate, 1.0 = fast/urgent).
Sourcepub fn valence(&self) -> f32
pub fn valence(&self) -> f32
Returns a normalized valence value (-1.0 = strongly negative, 1.0 = strongly positive).
Trait Implementations§
Source§impl Clone for NarrativeFunction
impl Clone for NarrativeFunction
Source§fn clone(&self) -> NarrativeFunction
fn clone(&self) -> NarrativeFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more