pub struct System<'a> {Show 76 fields
pub ldb_id: i32,
pub boat_name: DbStr<'a>,
pub ship_name: DbStr<'a>,
pub airship_name: DbStr<'a>,
pub boat_index: i32,
pub ship_index: i32,
pub airship_index: i32,
pub title_name: DbStr<'a>,
pub gameover_name: DbStr<'a>,
pub system_name: DbStr<'a>,
pub system2_name: DbStr<'a>,
pub party: Packed<i16>,
pub menu_commands: Packed<i16>,
pub title_music: Music<'a>,
pub battle_music: Music<'a>,
pub battle_end_music: Music<'a>,
pub inn_music: Music<'a>,
pub boat_music: Music<'a>,
pub ship_music: Music<'a>,
pub airship_music: Music<'a>,
pub gameover_music: Music<'a>,
pub cursor_se: Sound<'a>,
pub decision_se: Sound<'a>,
pub cancel_se: Sound<'a>,
pub buzzer_se: Sound<'a>,
pub battle_se: Sound<'a>,
pub escape_se: Sound<'a>,
pub enemy_attack_se: Sound<'a>,
pub enemy_damaged_se: Sound<'a>,
pub actor_damaged_se: Sound<'a>,
pub dodge_se: Sound<'a>,
pub enemy_death_se: Sound<'a>,
pub item_se: Sound<'a>,
pub transition_out: SystemFadeOut,
pub transition_in: SystemFadeIn,
pub battle_start_fadeout: SystemFadeOut,
pub battle_start_fadein: SystemFadeIn,
pub battle_end_fadeout: SystemFadeOut,
pub battle_end_fadein: SystemFadeIn,
pub message_stretch: SystemStretch,
pub font_id: SystemFont,
pub selected_condition: i32,
pub selected_hero: i32,
pub battletest_background: DbStr<'a>,
pub battletest_data: List<TestBattler>,
pub save_count: i32,
pub battletest_terrain: i32,
pub battletest_formation: SystemBattleFormation,
pub battletest_condition: SystemBattleCondition,
pub equipment_setting: SystemEquipmentSetting,
pub battletest_alt_terrain: i32,
pub show_frame: bool,
pub frame_name: DbStr<'a>,
pub invert_animations: bool,
pub show_title: bool,
pub easyrpg_alternative_exp: i32,
pub easyrpg_battle_options: Packed<i16>,
pub easyrpg_max_actor_hp: i32,
pub easyrpg_max_enemy_hp: i32,
pub easyrpg_max_damage: i32,
pub easyrpg_max_exp: i32,
pub easyrpg_max_level: i32,
pub easyrpg_max_savefiles: i32,
pub easyrpg_max_item_count: i32,
pub easyrpg_variable_min_value: i32,
pub easyrpg_variable_max_value: i32,
pub easyrpg_max_actor_sp: i32,
pub easyrpg_max_enemy_sp: i32,
pub easyrpg_max_stat_base_value: i32,
pub easyrpg_max_stat_battle_value: i32,
pub easyrpg_use_r2k_battle_system: bool,
pub easyrpg_battle_use_r2ke_strings: bool,
pub easyrpg_use_r2k_battle_commands: bool,
pub easyrpg_default_actorai: i32,
pub easyrpg_default_enemyai: i32,
pub unknown_chunks: UnknownChunks,
}Fields§
§ldb_id: i32§boat_name: DbStr<'a>§ship_name: DbStr<'a>§airship_name: DbStr<'a>§boat_index: i32§ship_index: i32§airship_index: i32§title_name: DbStr<'a>§gameover_name: DbStr<'a>§system_name: DbStr<'a>§system2_name: DbStr<'a>§party: Packed<i16>§title_music: Music<'a>§battle_music: Music<'a>§battle_end_music: Music<'a>§inn_music: Music<'a>§boat_music: Music<'a>§ship_music: Music<'a>§airship_music: Music<'a>§gameover_music: Music<'a>§cursor_se: Sound<'a>§decision_se: Sound<'a>§cancel_se: Sound<'a>§buzzer_se: Sound<'a>§battle_se: Sound<'a>§escape_se: Sound<'a>§enemy_attack_se: Sound<'a>§enemy_damaged_se: Sound<'a>§actor_damaged_se: Sound<'a>§dodge_se: Sound<'a>§enemy_death_se: Sound<'a>§item_se: Sound<'a>§transition_out: SystemFadeOut§transition_in: SystemFadeIn§battle_start_fadeout: SystemFadeOut§battle_start_fadein: SystemFadeIn§battle_end_fadeout: SystemFadeOut§battle_end_fadein: SystemFadeIn§message_stretch: SystemStretch§font_id: SystemFont§selected_condition: i32§selected_hero: i32§battletest_background: DbStr<'a>§battletest_data: List<TestBattler>§save_count: i32§battletest_terrain: i32§battletest_formation: SystemBattleFormation§battletest_condition: SystemBattleCondition§equipment_setting: SystemEquipmentSetting§battletest_alt_terrain: i32§show_frame: bool§frame_name: DbStr<'a>§invert_animations: bool§show_title: bool§easyrpg_alternative_exp: i32§easyrpg_battle_options: Packed<i16>§easyrpg_max_actor_hp: i32§easyrpg_max_enemy_hp: i32§easyrpg_max_damage: i32§easyrpg_max_exp: i32§easyrpg_max_level: i32§easyrpg_max_savefiles: i32§easyrpg_max_item_count: i32§easyrpg_variable_min_value: i32§easyrpg_variable_max_value: i32§easyrpg_max_actor_sp: i32§easyrpg_max_enemy_sp: i32§easyrpg_max_stat_base_value: i32§easyrpg_max_stat_battle_value: i32§easyrpg_use_r2k_battle_system: bool§easyrpg_battle_use_r2ke_strings: bool§easyrpg_use_r2k_battle_commands: bool§easyrpg_default_actorai: i32§easyrpg_default_enemyai: i32§unknown_chunks: UnknownChunksChunks this schema has no field for, kept verbatim so they survive a load/save
cycle. See UnknownChunk.
Trait Implementations§
Source§impl<'a> LcfStruct<'a> for System<'a>
impl<'a> LcfStruct<'a> for System<'a>
Source§fn defaults(engine: Engine) -> Self
fn defaults(engine: Engine) -> Self
The value every field holds before any chunk is read. Read more
Source§fn apply_chunk(
&mut self,
id: u32,
data: &'a [u8],
ctx: &mut Ctx<'_>,
) -> Option<u32>
fn apply_chunk( &mut self, id: u32, data: &'a [u8], ctx: &mut Ctx<'_>, ) -> Option<u32>
Apply one chunk. Read more
Source§fn unknown_chunks(&self) -> &UnknownChunks
fn unknown_chunks(&self) -> &UnknownChunks
The chunks no field claimed, kept so they can be written back.
Source§fn unknown_chunks_mut(&mut self) -> &mut UnknownChunks
fn unknown_chunks_mut(&mut self) -> &mut UnknownChunks
The chunks no field claimed, mutably.
Source§fn write_body<S: Sink>(
&self,
sink: &mut S,
engine: Engine,
) -> Result<(), S::Error>
fn write_body<S: Sink>( &self, sink: &mut S, engine: Engine, ) -> Result<(), S::Error>
Append the struct’s body, excluding any terminating zero. Read more
Source§fn body_size(&self, engine: Engine) -> u32
fn body_size(&self, engine: Engine) -> u32
Encoded length of the struct’s body, excluding any terminating zero. Read more
Source§fn read_stream(chunks: &mut ChunkIter<'a>, ctx: &mut Ctx<'_>) -> Self
fn read_stream(chunks: &mut ChunkIter<'a>, ctx: &mut Ctx<'_>) -> Self
Read a whole struct from a chunk stream.
impl<'a> StructuralPartialEq for System<'a>
Auto Trait Implementations§
impl<'a> Freeze for System<'a>
impl<'a> RefUnwindSafe for System<'a>
impl<'a> Send for System<'a>
impl<'a> Sync for System<'a>
impl<'a> Unpin for System<'a>
impl<'a> UnsafeUnpin for System<'a>
impl<'a> UnwindSafe for System<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> LcfField<'a> for Twhere
T: LcfStruct<'a>,
impl<'a, T> LcfField<'a> for Twhere
T: LcfStruct<'a>,
Source§fn field_default(engine: Engine) -> T
fn field_default(engine: Engine) -> T
The value this field holds when its chunk is absent and the schema gives no explicit
default. Read more
Source§fn read(data: &'a [u8], ctx: &mut Ctx<'_>, _owner: &'static str, _id: u32) -> T
fn read(data: &'a [u8], ctx: &mut Ctx<'_>, _owner: &'static str, _id: u32) -> T
Decode from a chunk payload sliced to exactly this field’s bytes. Read more
Source§fn lcf_size(&self, engine: Engine) -> u32
fn lcf_size(&self, engine: Engine) -> u32
Encoded length in bytes, which the two-pass writer emits as the chunk’s length prefix.
Source§fn write<S>(
&self,
sink: &mut S,
engine: Engine,
) -> Result<(), <S as Sink>::Error>where
S: Sink,
fn write<S>(
&self,
sink: &mut S,
engine: Engine,
) -> Result<(), <S as Sink>::Error>where
S: Sink,
Append the encoded payload. Read more
Source§fn lcf_differs(&self, other: &Self) -> boolwhere
Self: PartialEq,
fn lcf_differs(&self, other: &Self) -> boolwhere
Self: PartialEq,
Whether
self differs from other in its written form; the writer elides a field equal to
its default. Plain !=, except floats compare by bits: -0.0 == 0.0, so != would drop a
stored -0.0 and break the round trip.Source§fn element_count(&self) -> u32
fn element_count(&self) -> u32
Number of elements, for array-like fields. Read more