#[non_exhaustive]pub struct SaveRoot {
pub version: u32,
pub platform: String,
pub active_context: String,
pub common_state_data: CommonStateData,
pub base_context: GameContext,
pub expedition_context: GameContext,
pub discovery_manager_data: DiscoveryManagerData,
}Expand description
Top-level save file structure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: u32§platform: String§active_context: String§common_state_data: CommonStateData§base_context: GameContext§expedition_context: GameContext§discovery_manager_data: DiscoveryManagerDataImplementations§
Source§impl SaveRoot
impl SaveRoot
Sourcepub fn active_player_state(&self) -> &PlayerStateData
pub fn active_player_state(&self) -> &PlayerStateData
Get PlayerStateData for the active context.
Sourcepub fn to_core_player_state(&self) -> PlayerState
pub fn to_core_player_state(&self) -> PlayerState
Convert active player state to nms_core::PlayerState.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SaveRoot
impl<'de> Deserialize<'de> for SaveRoot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SaveRoot
impl RefUnwindSafe for SaveRoot
impl Send for SaveRoot
impl Sync for SaveRoot
impl Unpin for SaveRoot
impl UnsafeUnpin for SaveRoot
impl UnwindSafe for SaveRoot
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