[−][src]Struct genie_scx::TriggerCondition
A trigger condition, describing when a trigger can fire.
Implementations
impl TriggerCondition
[src]
pub fn read_from(input: impl Read, version: f64) -> Result<Self>
[src]
Read a trigger condition from an input stream, with the given trigger system version.
pub fn write_to(&self, output: impl Write, version: f64) -> Result<()>
[src]
Write this trigger condition to an output stream, with the given trigger system version.
pub fn amount(&self) -> i32
[src]
Get the "amount" value for this trigger condition.
pub fn set_amount(&mut self, amount: i32)
[src]
Set the "amount" value for this trigger condition.
pub fn resource(&self) -> i32
[src]
Get the "resource" value for this trigger condition.
pub fn set_resource(&mut self, resource: i32)
[src]
Set the "resource" value for this trigger condition.
pub fn primary_object(&self) -> i32
[src]
Get the "primary object" value for this trigger condition.
pub fn set_primary_object(&mut self, primary_object: i32)
[src]
Set the "primary object" value for this trigger condition.
pub fn secondary_object(&self) -> i32
[src]
Get the "secondary object" value for this trigger condition.
pub fn set_secondary_object(&mut self, secondary_object: i32)
[src]
Set the "secondary object" value for this trigger condition.
pub fn raw_unit_type(&self) -> i32
[src]
Get the raw "unit type" value for this trigger condition.
pub fn set_raw_unit_type(&mut self, unit_type: i32)
[src]
Set the raw "unit type" value for this trigger condition.
pub fn unit_type(&self) -> UnitTypeID
[src]
Get the "unit type" value for this trigger condition.
pub fn set_unit_type(&mut self, unit_type: UnitTypeID)
[src]
Set the "unit type" value for this trigger condition.
pub fn player_id(&self) -> i32
[src]
Get the "player ID" value for this trigger condition.
pub fn set_player_id(&mut self, player_id: i32)
[src]
Set the "player ID" value for this trigger condition.
pub fn technology_id(&self) -> i32
[src]
Get the "Tech ID" value for this trigger condition.
pub fn set_technology_id(&mut self, technology_id: i32)
[src]
Set the "Tech ID" value for this trigger condition.
pub fn timer(&self) -> i32
[src]
Get the "Timer" value for this trigger condition.
pub fn set_timer(&mut self, timer: i32)
[src]
Set the "Timer" value for this trigger condition.
pub fn trigger_id(&self) -> i32
[src]
Get the "Trigger ID" value for this trigger condition.
pub fn set_trigger_id(&mut self, trigger_id: i32)
[src]
Set the "Trigger ID" value for this trigger condition.
pub fn area(&self) -> (i32, i32, i32, i32)
[src]
Get the area this trigger condition applies to.
-1 values indicate no area is set.
pub fn set_area(&mut self, area: (i32, i32, i32, i32))
[src]
Set the area this trigger condition applies to.
-1 values indicate no area is set.
pub fn unit_group(&self) -> i32
[src]
Get the "unit group" value for this trigger condition.
pub fn set_unit_group(&mut self, unit_group: i32)
[src]
Set the "unit group" value for this trigger condition.
pub fn object_type(&self) -> UnitTypeID
[src]
Get the "Object Type" value for this trigger condition.
pub fn set_object_type(&mut self, object_type: UnitTypeID)
[src]
Set the "Object Type" value for this trigger condition.
pub fn ai_signal(&self) -> i32
[src]
Get the "AI Signal" value for this trigger condition.
pub fn set_ai_signal(&mut self, ai_signal: i32)
[src]
Set the "AI Signal" value for this trigger condition.
pub fn inverted(&self) -> bool
[src]
Get the "Inverted" value for this trigger condition.
pub fn set_inverted(&mut self, inverted: i32)
[src]
Set the "Inverted" value for this trigger condition.
Trait Implementations
impl Clone for TriggerCondition
[src]
fn clone(&self) -> TriggerCondition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TriggerCondition
[src]
impl Default for TriggerCondition
[src]
fn default() -> TriggerCondition
[src]
Auto Trait Implementations
impl RefUnwindSafe for TriggerCondition
impl Send for TriggerCondition
impl Sync for TriggerCondition
impl Unpin for TriggerCondition
impl UnwindSafe for TriggerCondition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,