pub struct GitAreaEffect {Show 26 fields
pub tag: String,
pub object_id: ObjectId,
pub area_effect_id: i32,
pub spell_id: u32,
pub spell_save_dc: i32,
pub spell_level: i32,
pub meta_magic_type: u8,
pub shape: GitAreaEffectShape,
pub creator_id: u32,
pub linked_to_object: u32,
pub last_entered: u32,
pub last_left: u32,
pub duration: u32,
pub duration_type: u8,
pub last_heartbeat_day: u32,
pub last_heartbeat_time: u32,
pub position_x: f32,
pub position_y: f32,
pub position_z: f32,
pub orientation_x: f32,
pub orientation_y: f32,
pub orientation_z: f32,
pub on_heartbeat: ResRef,
pub on_user_defined: ResRef,
pub on_obj_enter: ResRef,
pub on_obj_exit: ResRef,
}Expand description
An area-of-effect object placed in the area (struct type 13).
These are runtime spell and ability effects. Unlike every other object
list, they have no blueprint: no loader in the binary ever opens a
template for one, so UseTemplates has nothing to select between and
Git::area_effects is a plain Vec rather than a GitObjects.
§Not exercised by the fixture corpus
Every save in fixtures/saves/ has an empty AreaEffectList, so this
field set comes from the engine’s own load and save paths rather than from
real data. A test asserts the lists are still empty, so a corpus that
grows one fails loudly instead of quietly going unchecked.
Fields§
§tag: StringObject tag (Tag).
object_id: ObjectIdRuntime object id (ObjectId).
Defaults to the engine-wide OBJECT_INVALID placeholder rather than
zero, which is what a freshly constructed object carries.
area_effect_id: i32Effect row (AreaEffectId), into vfx_persistent.2da.
spell_id: u32Originating spell (SpellId).
spell_save_dc: i32Save DC of the originating spell (SpellSaveDC).
spell_level: i32Level of the originating spell (SpellLevel).
meta_magic_type: u8Metamagic applied to the originating spell (MetaMagicType).
shape: GitAreaEffectShapeThe ground the effect covers.
creator_id: u32Object that created the effect (CreatorId).
linked_to_object: u32Object the effect is attached to (LinkedToObject).
last_entered: u32Last object to enter the effect (LastEntered).
last_left: u32Last object to leave the effect (LastLeft).
duration: u32Remaining duration (Duration).
duration_type: u8How the duration is counted (DurationType).
last_heartbeat_day: u32Day of the last heartbeat (LastHrtbtDay).
last_heartbeat_time: u32Time of the last heartbeat (LastHrtbtTime).
position_x: f32X position (PositionX).
position_y: f32Y position (PositionY).
position_z: f32Z position (PositionZ).
orientation_x: f32X orientation (OrientationX).
orientation_y: f32Y orientation (OrientationY).
orientation_z: f32Z orientation (OrientationZ).
on_heartbeat: ResRefOnHeartbeat. Written by the engine, never read back.
on_user_defined: ResRefOnUserDefined. Written by the engine, never read back.
on_obj_enter: ResRefOnObjEnter. Written by the engine, never read back.
on_obj_exit: ResRefOnObjExit. Written by the engine, never read back.
Trait Implementations§
Source§impl Clone for GitAreaEffect
impl Clone for GitAreaEffect
Source§fn clone(&self) -> GitAreaEffect
fn clone(&self) -> GitAreaEffect
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 GitAreaEffect
impl Debug for GitAreaEffect
Source§impl Default for GitAreaEffect
impl Default for GitAreaEffect
Source§fn default() -> GitAreaEffect
fn default() -> GitAreaEffect
Source§impl PartialEq for GitAreaEffect
impl PartialEq for GitAreaEffect
Source§fn eq(&self, other: &GitAreaEffect) -> bool
fn eq(&self, other: &GitAreaEffect) -> bool
self and other values to be equal, and is used by ==.