pub struct State {Show 21 fields
pub path: Option<PathBuf>,
pub version: u32,
pub times: Vec<BestTimes>,
pub players: Vec<PlayerEntry>,
pub player_a_name: String,
pub player_b_name: String,
pub player_a_keys: PlayerKeys,
pub player_b_keys: PlayerKeys,
pub sound_enabled: bool,
pub sound_optimization: SoundOptimization,
pub play_mode: PlayMode,
pub flagtag: bool,
pub swap_bikes: bool,
pub video_detail: VideoDetail,
pub animated_objects: bool,
pub animated_menus: bool,
pub inc_screen_size_key: u32,
pub dec_screen_size_key: u32,
pub screenshot_key: u32,
pub last_edited_lev_name: String,
pub last_played_external: String,
}Expand description
State.dat struct
Fields§
§path: Option<PathBuf>Path to State file.
version: u32State file version; the only supported value is 200.
times: Vec<BestTimes>Best times lists. state.dat has a fixed-size array of 90 of these.
players: Vec<PlayerEntry>List of players. state.dat has a fixed-size array of 50 of these.
player_a_name: StringName of player A, maximum 14 characters.
player_b_name: StringName of player B, maximum 14 characters.
player_a_keys: PlayerKeysKeys for player A.
player_b_keys: PlayerKeysKeys for player B.
sound_enabled: boolWhether sound is enabled.
sound_optimization: SoundOptimizationSound optimization.
play_mode: PlayModePlay mode.
flagtag: boolWhether flag tag mode is enabled.
swap_bikes: boolWhether bikes are swapped.
video_detail: VideoDetailVideo detail.
animated_objects: boolWhether objects are animated.
Whether menus are animated.
inc_screen_size_key: u32Key for increasing screen size.
dec_screen_size_key: u32Key for decreasing screen size.
screenshot_key: u32Key for taking a screenshot.
last_edited_lev_name: StringName of last edited level.
last_played_external: StringName of last played external level.
Implementations§
Source§impl State
impl State
Trait Implementations§
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more