[][src]Struct genie_scx::TriggerCondition

pub struct TriggerCondition { /* fields omitted */ }

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]

impl Debug for TriggerCondition[src]

impl Default for TriggerCondition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.