pub struct CommonEvent { /* private fields */ }Expand description
A common event, representing a common series of command that can be invoked from any event
Implementations§
Source§impl CommonEvent
impl CommonEvent
Sourcepub fn run_condition(&self) -> &RunCondition
pub fn run_condition(&self) -> &RunCondition
The condition under which this event will run
Sourcepub fn event_name(&self) -> &str
pub fn event_name(&self) -> &str
The name of this event, which can be used for invoking it
Sourcepub fn arguments(&self) -> &Vec<Argument>
pub fn arguments(&self) -> &Vec<Argument>
A list of arguments that can be passed when invoking this event
Sourcepub fn var_names(&self) -> &Vec<String>
pub fn var_names(&self) -> &Vec<String>
A list of names for each of the 100 local variables available in this event.
Sourcepub fn return_name(&self) -> &str
pub fn return_name(&self) -> &str
The name of the variable in which the return value will be put
Sourcepub fn return_variable(&self) -> u32
pub fn return_variable(&self) -> u32
The address of the variable in which the return value will be put
Trait Implementations§
Source§impl Clone for CommonEvent
impl Clone for CommonEvent
Source§fn clone(&self) -> CommonEvent
fn clone(&self) -> CommonEvent
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 moreSource§impl PartialEq for CommonEvent
impl PartialEq for CommonEvent
impl StructuralPartialEq for CommonEvent
Auto Trait Implementations§
impl Freeze for CommonEvent
impl RefUnwindSafe for CommonEvent
impl Send for CommonEvent
impl Sync for CommonEvent
impl Unpin for CommonEvent
impl UnwindSafe for CommonEvent
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