[−][src]Struct genie_scx::TriggerCondition
A trigger condition, describing when a trigger can fire.
Methods
impl TriggerCondition
[src]
pub fn from<R: Read>(input: &mut R, version: f64) -> Result<Self>
[src]
Read a trigger condition from an input stream, with the given trigger system version.
pub fn write_to<W: Write>(&self, output: &mut W, version: f64) -> Result<()>
[src]
Write this trigger condition to an output stream, with the given trigger system version.
pub fn amount(&self) -> i32
[src]
pub fn set_amount(&mut self, amount: i32)
[src]
pub fn resource(&self) -> i32
[src]
pub fn set_resource(&mut self, resource: i32)
[src]
pub fn primary_object(&self) -> i32
[src]
pub fn set_primary_object(&mut self, primary_object: i32)
[src]
pub fn secondary_object(&self) -> i32
[src]
pub fn set_secondary_object(&mut self, secondary_object: i32)
[src]
pub fn unit_type(&self) -> i32
[src]
pub fn set_unit_type(&mut self, unit_type: i32)
[src]
pub fn player_id(&self) -> i32
[src]
pub fn set_player_id(&mut self, player_id: i32)
[src]
pub fn technology_id(&self) -> i32
[src]
pub fn set_technology_id(&mut self, technology_id: i32)
[src]
pub fn timer(&self) -> i32
[src]
pub fn set_timer(&mut self, timer: i32)
[src]
pub fn trigger_id(&self) -> i32
[src]
pub fn set_trigger_id(&mut self, trigger_id: i32)
[src]
pub fn area(&self) -> (i32, i32, i32, i32)
[src]
pub fn set_area(&mut self, area: (i32, i32, i32, i32))
[src]
pub fn unit_group(&self) -> i32
[src]
pub fn set_unit_group(&mut self, unit_group: i32)
[src]
pub fn object_type(&self) -> i32
[src]
pub fn set_object_type(&mut self, object_type: i32)
[src]
pub fn ai_signal(&self) -> i32
[src]
pub fn set_ai_signal(&mut self, ai_signal: i32)
[src]
pub fn inverted(&self) -> bool
[src]
pub fn set_inverted(&mut self, inverted: i32)
[src]
Trait Implementations
impl Clone for TriggerCondition
[src]
fn clone(&self) -> TriggerCondition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for TriggerCondition
[src]
fn default() -> TriggerCondition
[src]
impl Debug for TriggerCondition
[src]
Auto Trait Implementations
impl Sync for TriggerCondition
impl Send for TriggerCondition
impl Unpin for TriggerCondition
impl RefUnwindSafe for TriggerCondition
impl UnwindSafe for TriggerCondition
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,