Struct satisfactory_save_file::SaveFile [−][src]
pub struct SaveFile {}Show fields
pub save_header: i32, pub save_version: i32, pub build_version: i32, pub world_type: String, pub world_properties: WorldProperties, pub session_name: String, pub play_time: Duration, pub save_date: DateTime<Utc>, pub session_visibility: SessionVisiblity, pub editor_object_version: i32, pub mod_meta_data: String, pub is_modded_save: bool, pub save_objects: Vec<SaveObject>,
Expand description
Satisfactory save file.
Fields
save_header: i32
save_version: i32
build_version: i32
world_type: String
world_properties: WorldProperties
session_name: String
play_time: Duration
save_date: DateTime<Utc>
session_visibility: SessionVisiblity
editor_object_version: i32
mod_meta_data: String
is_modded_save: bool
save_objects: Vec<SaveObject>
Implementations
impl SaveFile
[src]
impl SaveFile
[src]pub fn parse<R>(file: &mut R) -> Result<SaveFile> where
R: Read + Seek,
[src]
pub fn parse<R>(file: &mut R) -> Result<SaveFile> where
R: Read + Seek,
[src]Reads satisfactory save file to SaveFile struct.
Save files are stored in %localappdata%\FactoryGame\Saved\SaveGames\<your id>
and it has a
.sav
extension.
Tested with build version 152331.
Do not pass a BufReader. I don’t know why this fails with BufReader. Create an issue if you figured it out.
Trait Implementations
impl StructuralPartialEq for SaveFile
[src]
Auto Trait Implementations
impl RefUnwindSafe for SaveFile
impl Send for SaveFile
impl Sync for SaveFile
impl Unpin for SaveFile
impl UnwindSafe for SaveFile
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more