pub struct SavedPlaceable {Show 59 fields
pub tag: String,
pub object_id: ObjectId,
pub appearance: u32,
pub animation: i32,
pub loc_name: GffLocalizedString,
pub description: GffLocalizedString,
pub portrait: SavedPortrait,
pub x: f32,
pub y: f32,
pub z: f32,
pub bearing: f32,
pub current_hp: i16,
pub hp: i16,
pub hardness: u8,
pub fortitude: u8,
pub reflex: u8,
pub will: u8,
pub min1_hp: bool,
pub plot: bool,
pub is_static: bool,
pub commandable: bool,
pub faction: u32,
pub useable: bool,
pub party_interact: bool,
pub open: bool,
pub light_state: u8,
pub has_inventory: bool,
pub die_when_empty: bool,
pub ground_pile: bool,
pub body_bag: u8,
pub is_body_bag: bool,
pub is_body_bag_visible: bool,
pub is_corpse: bool,
pub items: Vec<SavedItem>,
pub lockable: bool,
pub locked: bool,
pub open_lock_dc: u8,
pub close_lock_dc: u8,
pub key_name: String,
pub key_required: bool,
pub auto_remove_key: bool,
pub trap: TrapSettings,
pub conversation: ResRef,
pub on_closed: ResRef,
pub on_damaged: ResRef,
pub on_death: ResRef,
pub on_dialog: ResRef,
pub on_disarm: ResRef,
pub on_end_dialogue: ResRef,
pub on_heartbeat: ResRef,
pub on_inv_disturbed: ResRef,
pub on_lock: ResRef,
pub on_melee_attacked: ResRef,
pub on_open: ResRef,
pub on_spell_cast_at: ResRef,
pub on_trap_triggered: ResRef,
pub on_unlock: ResRef,
pub on_used: ResRef,
pub on_user_defined: ResRef,
}Expand description
A placeable as stored inside a save game’s module GIT.
Fields§
§tag: StringObject tag (Tag).
object_id: ObjectIdRuntime object id (ObjectId).
appearance: u32Appearance row (Appearance), into placeables.2da.
animation: i32Current animation state (Animation).
loc_name: GffLocalizedStringDisplayed name (LocName).
description: GffLocalizedStringDescription (Description).
portrait: SavedPortraitPortrait, in whichever of its two forms the object uses.
x: f32World X position (X).
y: f32World Y position (Y).
z: f32World Z position (Z).
bearing: f32Facing, in radians (Bearing).
current_hp: i16Current hit points (CurrentHP).
hp: i16Maximum hit points (HP).
hardness: u8Damage reduction (Hardness).
fortitude: u8Fortitude save (Fort).
reflex: u8Reflex save (Ref).
will: u8Will save (Will).
min1_hp: boolCannot be reduced below 1 HP (Min1HP).
plot: boolPlot flag (Plot).
is_static: boolStatic, non-interactive geometry (Static).
commandable: boolAccepts scripted commands (Commandable).
faction: u32Faction id (Faction).
useable: boolCan be interacted with at all (Useable).
party_interact: boolParty members may use it directly (PartyInteract).
open: boolCurrently open (Open).
light_state: u8Light state (LightState).
has_inventory: boolHolds an inventory (HasInventory).
die_when_empty: boolDestroy the object once emptied (DieWhenEmpty).
ground_pile: boolRenders as a loose pile rather than a container (GroundPile).
body_bag: u8Body-bag row (BodyBag).
is_body_bag: boolIs a body bag (IsBodyBag).
is_body_bag_visible: boolBody bag is visible (IsBodyBagVisible).
is_corpse: boolIs a corpse (IsCorpse).
items: Vec<SavedItem>Container contents (ItemList). Empty writes no field at all.
lockable: boolCan be locked at all (Lockable).
locked: boolCurrently locked (Locked).
open_lock_dc: u8DC to pick the lock (OpenLockDC).
close_lock_dc: u8DC to re-lock (CloseLockDC).
key_name: StringKey tag that opens this placeable (KeyName).
key_required: boolA key is required regardless of lock DC (KeyRequired).
auto_remove_key: boolConsume the key on use (AutoRemoveKey).
trap: TrapSettingsTrap configuration (TrapDetectable, TrapDetectDC, …).
conversation: ResRefAttached conversation (Conversation).
on_closed: ResRefOnClosed.
on_damaged: ResRefOnDamaged.
on_death: ResRefOnDeath.
on_dialog: ResRefOnDialog.
on_disarm: ResRefOnDisarm.
on_end_dialogue: ResRefOnEndDialogue.
on_heartbeat: ResRefOnHeartbeat.
on_inv_disturbed: ResRefOnInvDisturbed.
on_lock: ResRefOnLock.
on_melee_attacked: ResRefOnMeleeAttacked.
on_open: ResRefOnOpen.
on_spell_cast_at: ResRefOnSpellCastAt.
on_trap_triggered: ResRefOnTrapTriggered.
on_unlock: ResRefOnUnlock.
on_used: ResRefOnUsed.
on_user_defined: ResRefOnUserDefined.
Implementations§
Trait Implementations§
Source§impl Clone for SavedPlaceable
impl Clone for SavedPlaceable
Source§fn clone(&self) -> SavedPlaceable
fn clone(&self) -> SavedPlaceable
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 SavedPlaceable
impl Debug for SavedPlaceable
Source§impl Default for SavedPlaceable
impl Default for SavedPlaceable
Source§fn default() -> SavedPlaceable
fn default() -> SavedPlaceable
Source§impl PartialEq for SavedPlaceable
impl PartialEq for SavedPlaceable
Source§fn eq(&self, other: &SavedPlaceable) -> bool
fn eq(&self, other: &SavedPlaceable) -> bool
self and other values to be equal, and is used by ==.