Skip to main content

System

Struct System 

Source
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>§menu_commands: 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: UnknownChunks

Chunks this schema has no field for, kept verbatim so they survive a load/save cycle. See UnknownChunk.

Trait Implementations§

Source§

impl<'a> Clone for System<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for System<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> IntoOwned for System<'a>

Source§

type Owned = System<'static>

The same shape, owning its data.
Source§

fn into_owned(self) -> Self::Owned

Copy anything still borrowed, so the result outlives the input buffer.
Source§

impl<'a> LcfStruct<'a> for System<'a>

Source§

const NAME: &'static str = "System"

Name used to locate diagnostics, e.g. "Actor".
Source§

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>

Apply one chunk. Read more
Source§

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

The chunks no field claimed, mutably.
Source§

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

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

Read a whole struct from a chunk stream.
Source§

impl<'a> PartialEq for System<'a>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> Strings<'a> for System<'a>

Source§

fn visit_strings(&self, f: &mut dyn FnMut(&'static str, &DbStr<'a>))

Call f once per string field, with the field’s name and value.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T> LcfField<'a> for T
where T: LcfStruct<'a>,

Source§

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

Decode from a chunk payload sliced to exactly this field’s bytes. Read more
Source§

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,

Append the encoded payload. Read more
Source§

fn lcf_differs(&self, other: &Self) -> bool
where 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

Number of elements, for array-like fields. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.