pub struct TriggerInfo {
pub name: &'static str,
pub byte: u8,
pub subject_type: Option<Type>,
pub validates_subject: bool,
pub is_button: bool,
}Fields§
§name: &'static str§byte: u8§subject_type: Option<Type>Preferred entity type for lookup_entity_id_typed. None falls
through to the flat entity-id lookup.
validates_subject: boolTrue if a [trigger,name] script with a non-_, non-_category,
non-coord subject should resolve to a real entity. Drives the
“subject did not resolve” warning. False for triggers that:
- have no entity subject (login, logout)
- take coord-shaped subjects (zone, zoneexit, mapzone, mapzoneexit)
- intentionally don’t validate (ai_queue, ai_timer — preserved
from the original
is_byte_keyed_triggerwhitelist; widening this would change emitted warnings)
True for if_button/if_button1-10/if_buttond and inv_button1-5/inv_buttond. Used by pointer_checker to grant p_active_player on non-overlay interfaces, mirroring ServerPointerChecker.setsPointerTrigger().
Trait Implementations§
Source§impl Clone for TriggerInfo
impl Clone for TriggerInfo
Source§fn clone(&self) -> TriggerInfo
fn clone(&self) -> TriggerInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TriggerInfo
Auto Trait Implementations§
impl Freeze for TriggerInfo
impl RefUnwindSafe for TriggerInfo
impl Send for TriggerInfo
impl Sync for TriggerInfo
impl Unpin for TriggerInfo
impl UnsafeUnpin for TriggerInfo
impl UnwindSafe for TriggerInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more