pub struct SerializableGameState {
pub metadata: SaveMetadata,
pub world_data: Vec<u8>,
pub config: GameConfig,
pub progress: PlayerProgress,
pub custom_data: HashMap<String, Vec<u8>>,
}Expand description
Serializable game state container.
Fields§
§metadata: SaveMetadataMetadata for this save
world_data: Vec<u8>Serialized world data
config: GameConfigGame configuration settings
progress: PlayerProgressPlayer progress and statistics
custom_data: HashMap<String, Vec<u8>>Custom game-specific data
Trait Implementations§
Source§impl Clone for SerializableGameState
impl Clone for SerializableGameState
Source§fn clone(&self) -> SerializableGameState
fn clone(&self) -> SerializableGameState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializableGameState
impl Debug for SerializableGameState
Source§impl<'de> Deserialize<'de> for SerializableGameState
impl<'de> Deserialize<'de> for SerializableGameState
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 SerializableGameState
impl RefUnwindSafe for SerializableGameState
impl Send for SerializableGameState
impl Sync for SerializableGameState
impl Unpin for SerializableGameState
impl UnsafeUnpin for SerializableGameState
impl UnwindSafe for SerializableGameState
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