pub struct LogicModData {
pub self_key: Option<Uoid>,
pub notify_receivers: Vec<Uoid>,
pub notify_id: i32,
pub cursor_type: i32,
pub condition_keys: Vec<Uoid>,
pub flags: u32,
pub disabled: bool,
}Expand description
Parsed plLogicModifier — enough data for click dispatch. C++ ref: plLogicModifier.cpp:259-271, plLogicModBase.cpp:280-297
Fields§
§self_key: Option<Uoid>§notify_receivers: Vec<Uoid>Notify receiver keys (from the embedded plNotifyMsg).
notify_id: i32fID from the embedded plNotifyMsg — passed as id to script OnNotify.
C++ ref: plNotifyMsg.cpp:812 — fID read as i32 after fType and fState.
cursor_type: i32Cursor type from fMyCursor. C++ ref: plCursorChangeMsg cursor types.
condition_keys: Vec<Uoid>Condition keys from plLogicModifier::fConditionList. C++ ref: plLogicModifier.cpp:Read — ReadKeyNotifyMe for each condition.
flags: u32plLogicModBase flags (hsBitVector). C++ ref: plLogicModBase.h — kOneShot=0x4, kMultiTrigger=0x8, etc.
disabled: boolWhether this logic modifier is disabled. C++ ref: plLogicModBase::fDisabled
Trait Implementations§
Source§impl Clone for LogicModData
impl Clone for LogicModData
Source§fn clone(&self) -> LogicModData
fn clone(&self) -> LogicModData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogicModData
impl RefUnwindSafe for LogicModData
impl Send for LogicModData
impl Sync for LogicModData
impl Unpin for LogicModData
impl UnsafeUnpin for LogicModData
impl UnwindSafe for LogicModData
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