pub struct SavedTrigger {Show 36 fields
pub tag: String,
pub object_id: ObjectId,
pub creator_id: u32,
pub trigger_type: i32,
pub localized_name: GffLocalizedString,
pub portrait: SavedPortrait,
pub faction: u32,
pub cursor: u8,
pub highlight_height: f32,
pub commandable: bool,
pub set_by_player_party: bool,
pub x_position: f32,
pub y_position: f32,
pub z_position: f32,
pub x_orientation: f32,
pub y_orientation: f32,
pub z_orientation: f32,
pub geometry: Vec<GitTriggerPoint>,
pub linked_to: String,
pub linked_to_flags: u8,
pub linked_to_module: ResRef,
pub transition_destin: GffLocalizedString,
pub load_screen_id: u16,
pub key_name: String,
pub auto_remove_key: bool,
pub trap_detectable: bool,
pub trap_disarmable: bool,
pub trap_one_shot: bool,
pub trap_type: u8,
pub on_click: ResRef,
pub on_disarm: ResRef,
pub on_trap_triggered: ResRef,
pub script_heartbeat: ResRef,
pub script_on_enter: ResRef,
pub script_on_exit: ResRef,
pub script_user_define: ResRef,
}Expand description
A trigger as stored inside a save game’s module GIT.
Fields§
§tag: StringObject tag (Tag).
object_id: ObjectIdRuntime object id (ObjectId).
creator_id: u32Object that created this trigger at runtime (CreatorId).
trigger_type: i32Trigger kind (Type): generic, area transition, or trap.
localized_name: GffLocalizedStringDisplayed name (LocalizedName).
portrait: SavedPortraitPortrait, in whichever of its two forms the object uses.
faction: u32Faction id (Faction).
cursor: u8Cursor shown over the trigger (Cursor).
highlight_height: f32Highlight rendering height (HighlightHeight).
commandable: boolAccepts scripted commands (Commandable).
set_by_player_party: boolPlaced by the player party at runtime (SetByPlayerParty).
x_position: f32World X position (XPosition).
y_position: f32World Y position (YPosition).
z_position: f32World Z position (ZPosition).
x_orientation: f32Facing X component (XOrientation).
y_orientation: f32Facing Y component (YOrientation).
z_orientation: f32Facing Z component (ZOrientation).
geometry: Vec<GitTriggerPoint>Polygon defining the trigger area (Geometry).
linked_to: StringArea transition target tag (LinkedTo).
linked_to_flags: u8Transition kind (LinkedToFlags).
linked_to_module: ResRefTarget module for a cross-module transition (LinkedToModule).
transition_destin: GffLocalizedStringTransition tooltip text (TransitionDestin).
load_screen_id: u16Load screen shown across the transition (LoadScreenID).
key_name: StringKey tag that disarms this trigger (KeyName).
auto_remove_key: boolConsume the key on use (AutoRemoveKey).
trap_detectable: boolTrap can be spotted (TrapDetectable).
trap_disarmable: boolTrap can be disarmed (TrapDisarmable).
trap_one_shot: boolTrap fires once and is spent (TrapOneShot).
trap_type: u8Trap row (TrapType).
on_click: ResRefOnClick.
on_disarm: ResRefOnDisarm.
on_trap_triggered: ResRefOnTrapTriggered.
script_heartbeat: ResRefScriptHeartbeat.
script_on_enter: ResRefScriptOnEnter.
script_on_exit: ResRefScriptOnExit.
script_user_define: ResRefScriptUserDefine.
Implementations§
Source§impl SavedTrigger
impl SavedTrigger
Trait Implementations§
Source§impl Clone for SavedTrigger
impl Clone for SavedTrigger
Source§fn clone(&self) -> SavedTrigger
fn clone(&self) -> SavedTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SavedTrigger
impl Debug for SavedTrigger
Source§impl Default for SavedTrigger
impl Default for SavedTrigger
Source§fn default() -> SavedTrigger
fn default() -> SavedTrigger
Source§impl PartialEq for SavedTrigger
impl PartialEq for SavedTrigger
Source§fn eq(&self, other: &SavedTrigger) -> bool
fn eq(&self, other: &SavedTrigger) -> bool
self and other values to be equal, and is used by ==.