pub struct StoryGate {
pub name: String,
pub op: StoryCompareOp,
pub value: i32,
pub target: u32,
}Expand description
One conditional jump in a Story’s script.
Fields§
§name: StringThe variable the condition tests.
op: StoryCompareOpHow the variable compares against value.
value: i32The literal compared against.
target: u32BehaviorNode index play jumps to when the condition passes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StoryGate
impl<'de> Deserialize<'de> for StoryGate
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
Auto Trait Implementations§
impl Freeze for StoryGate
impl RefUnwindSafe for StoryGate
impl Send for StoryGate
impl Sync for StoryGate
impl Unpin for StoryGate
impl UnsafeUnpin for StoryGate
impl UnwindSafe for StoryGate
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