pub struct GitAreaProperties {Show 17 fields
pub unescapable: bool,
pub stealth_xp_max: u32,
pub stealth_xp_current: u32,
pub stealth_xp_loss: u32,
pub stealth_xp_enabled: bool,
pub trans_pending: bool,
pub trans_pend_next_id: u8,
pub trans_pend_curr_id: u8,
pub sun_fog_color: u32,
pub music_delay: i32,
pub music_day: i32,
pub music_night: i32,
pub music_battle: i32,
pub ambient_snd_day: i32,
pub ambient_snd_night: i32,
pub ambient_snd_day_vol: i32,
pub ambient_snd_nit_vol: i32,
}Expand description
Area-level properties (music, ambient sound, stealth XP, fog).
This is a single Struct in the GIT root (field label AreaProperties).
Fields§
§unescapable: boolUnescapable flag (Unescapable).
stealth_xp_max: u32Stealth XP maximum (StealthXPMax).
stealth_xp_current: u32Current stealth XP count (StealthXPCurrent). Save-game state. Natively clamped by the engine to not exceed StealthXPMax.
stealth_xp_loss: u32Stealth XP loss per detection (StealthXPLoss).
stealth_xp_enabled: boolStealth XP enabled flag (StealthXPEnabled).
trans_pending: boolTransition pending flag (TransPending). Save-game state.
trans_pend_next_id: u8Pending transition next ID (TransPendNextID). Save-game state.
trans_pend_curr_id: u8Pending transition current ID (TransPendCurrID). Save-game state.
sun_fog_color: u32Sun/fog color packed as RGBA (SunFogColor).
music_delay: i32Music delay in ms (MusicDelay).
music_day: i32Daytime music track ID (MusicDay). References ambientmusic.2da.
music_night: i32Night-time music track ID (MusicNight). References ambientmusic.2da.
music_battle: i32Battle music track ID (MusicBattle). References ambientmusic.2da.
ambient_snd_day: i32Daytime ambient sound ID (AmbientSndDay). References ambientsound.2da.
ambient_snd_night: i32Night-time ambient sound ID (AmbientSndNight). References ambientsound.2da.
ambient_snd_day_vol: i32Daytime ambient sound volume (AmbientSndDayVol). Values outside 0-255 are truncated and wrapped to an 8-bit byte.
ambient_snd_nit_vol: i32Night-time ambient sound volume (AmbientSndNitVol). Values outside 0-255 are truncated and wrapped to an 8-bit byte.
Implementations§
Source§impl GitAreaProperties
impl GitAreaProperties
Sourcepub const PARTS: &'static [&'static [Field]]
pub const PARTS: &'static [&'static [Field]]
This type’s schema in parts, which is what a container holding it references.
Own fields first, then one part per flattened child in the order they are declared.
Sourcepub fn read_declared(root: &GffStruct) -> Self
pub fn read_declared(root: &GffStruct) -> Self
Reads every declared field off root.
Absent fields take the entry’s own answer, so a fallback is derived from the declaration rather than restated beside it.
A field declaring a hand-written read is left at that answer for the view to overwrite.
Sourcepub fn write_declared(&self, root: &mut GffStruct)
pub fn write_declared(&self, root: &mut GffStruct)
Writes every declared field onto root, leaving out the ones
their entry says the engine’s own writer leaves out.
A field declaring a hand-written write is not touched here.
Sourcepub fn read_element(structure: &GffStruct) -> Self
pub fn read_element(structure: &GffStruct) -> Self
Reads one element of a list of this type.
Sourcepub fn write_element(&self, structure: &mut GffStruct)
pub fn write_element(&self, structure: &mut GffStruct)
Writes one element of a list of this type.
Trait Implementations§
Source§impl Clone for GitAreaProperties
impl Clone for GitAreaProperties
Source§fn clone(&self) -> GitAreaProperties
fn clone(&self) -> GitAreaProperties
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 GitAreaProperties
impl Debug for GitAreaProperties
Source§impl Default for GitAreaProperties
impl Default for GitAreaProperties
Source§impl HasSchema for GitAreaProperties
impl HasSchema for GitAreaProperties
Source§impl PartialEq for GitAreaProperties
impl PartialEq for GitAreaProperties
Source§fn eq(&self, other: &GitAreaProperties) -> bool
fn eq(&self, other: &GitAreaProperties) -> bool
self and other values to be equal, and is used by ==.