[][src]Struct genie_scx::TriggerEffect

pub struct TriggerEffect { /* fields omitted */ }

A trigger effect, describing the response when a trigger fires.

Implementations

impl TriggerEffect[src]

pub fn read_from(input: impl Read, version: f64) -> Result<Self>[src]

Read a trigger effect from an input stream, with the given trigger system version.

pub fn write_to(&self, output: impl Write, version: f64) -> Result<()>[src]

Write a trigger effect to an output stream, with the given trigger system version.

pub fn ai_goal(&self) -> i32[src]

Get the "AI Goal" value for this trigger effect.

pub fn set_ai_goal(&mut self, ai_goal: i32)[src]

Set the "AI Goal" value for this trigger effect.

pub fn amount(&self) -> i32[src]

Get the "Amount" value for this trigger effect.

pub fn set_amount(&mut self, amount: i32)[src]

Set the "Amount" value for this trigger effect.

pub fn resource(&self) -> i32[src]

Get the "Resource" value for this trigger effect.

pub fn set_resource(&mut self, resource: i32)[src]

Set the "Resource" value for this trigger effect.

pub fn diplomacy(&self) -> i32[src]

Get the "Diplomacy" value for this trigger effect.

pub fn set_diplomacy(&mut self, diplomacy: i32)[src]

Set the "Diplomacy" value for this trigger effect.

pub fn num_objects(&self) -> i32[src]

Get the "Number of Objects" value for this trigger effect.

pub fn set_num_objects(&mut self, num_objects: i32)[src]

Set the "Number of Objects" value for this trigger effect.

pub fn object_id(&self) -> i32[src]

Get the "Object ID" value for this trigger effect.

pub fn set_object_id(&mut self, object_id: i32)[src]

Set the "Object ID" value for this trigger effect.

pub fn unit_type(&self) -> UnitTypeID[src]

Get the "Unit Type" value for this trigger effect.

pub fn set_unit_type(&mut self, unit_type: UnitTypeID)[src]

Set the "Unit Type" value for this trigger effect.

pub fn source_player_id(&self) -> i32[src]

Get the "Source Player" value for this trigger effect.

pub fn set_source_player_id(&mut self, source_player_id: i32)[src]

Set the "Source Player" value for this trigger effect.

pub fn target_player_id(&self) -> i32[src]

Get the "Target Player" value for this trigger effect.

pub fn set_target_player_id(&mut self, target_player_id: i32)[src]

Set the "Target Player" value for this trigger effect.

pub fn technology_id(&self) -> i32[src]

Get the "Tech ID" value for this trigger effect.

pub fn set_technology_id(&mut self, technology_id: i32)[src]

Set the "Tech ID" value for this trigger effect.

pub fn text_id(&self) -> i32[src]

Get the "Text ID" value for this trigger effect.

pub fn set_text_id(&mut self, text_id: i32)[src]

Set the "Text ID" value for this trigger effect.

pub fn sound_id(&self) -> i32[src]

Get the "Sound ID" value for this trigger effect.

pub fn set_sound_id(&mut self, sound_id: i32)[src]

Set the "Sound ID" value for this trigger effect.

pub fn timer(&self) -> i32[src]

Get the "Timer" value for this trigger effect.

pub fn set_timer(&mut self, timer: i32)[src]

Set the "Timer" value for this trigger effect.

pub fn trigger_id(&self) -> i32[src]

Get the "Trigger ID" value for this trigger effect.

pub fn set_trigger_id(&mut self, trigger_id: i32)[src]

Set the "Trigger ID" value for this trigger effect.

pub fn location(&self) -> (i32, i32)[src]

Get the location this trigger effect applies to.

pub fn set_location(&mut self, location: (i32, i32))[src]

Set the location this trigger effect applies to.

pub fn area(&self) -> (i32, i32, i32, i32)[src]

Get the area this trigger effect applies to.

pub fn set_area(&mut self, area: (i32, i32, i32, i32))[src]

Set the area this trigger effect applies to.

pub fn object_group(&self) -> i32[src]

Get the "Object Group" value for this trigger effect.

pub fn set_object_group(&mut self, object_group: i32)[src]

Set the "Object Group" value for this trigger effect.

pub fn object_type(&self) -> UnitTypeID[src]

Get the "Object Type" value for this trigger effect.

pub fn set_object_type(&mut self, object_type: UnitTypeID)[src]

Set the "Object Type" value for this trigger effect.

pub fn line_id(&self) -> i32[src]

Get the "Line ID" value for this trigger effect.

pub fn set_line_id(&mut self, line_id: i32)[src]

Set the "Line ID" value for this trigger effect.

pub fn stance(&self) -> i32[src]

Get the "Stance" value for this trigger effect.

pub fn set_stance(&mut self, stance: i32)[src]

Set the "Stance" value for this trigger effect.

Trait Implementations

impl Clone for TriggerEffect[src]

impl Debug for TriggerEffect[src]

impl Default for TriggerEffect[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.