pub enum Effect {
KnowledgeTransfer {
from: String,
to: String,
claim: String,
provenance: Option<String>,
initial_confidence: Option<f64>,
},
RelationshipDelta {
axis: String,
from: String,
to: String,
delta: f64,
},
EmotionalEvent {
target: String,
emotion: String,
intensity: f64,
},
MoodShift {
target: String,
axis: String,
delta: f64,
},
NeedSatisfaction {
target: String,
need: String,
amount: f64,
},
ValueShift {
target: String,
value: String,
delta: f64,
},
PracticeExit {
actor: String,
reason: Option<String>,
},
}Expand description
An effect produced by a social interaction beat.
Effects are tagged with kind in serialized form and categorized into
aggregate buckets on EncounterResult by EncounterResult::push_beat.
Variants§
KnowledgeTransfer
One character conveys a belief to another.
Fields
RelationshipDelta
A shift along a relationship axis between two characters.
Fields
EmotionalEvent
An emotional response triggered in a character.
Fields
MoodShift
A sustained shift in a character’s mood along some axis.
Fields
NeedSatisfaction
Partial or full satisfaction of a character’s need.
Fields
ValueShift
A nudge to a character’s value system.
Fields
PracticeExit
An actor leaves the current practice.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Effect
impl<'de> Deserialize<'de> for Effect
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more