pub struct SaveFile {Show 13 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§
Source§impl SaveFile
impl SaveFile
Sourcepub fn parse<R>(file: &mut R) -> Result<SaveFile>
pub fn parse<R>(file: &mut R) -> Result<SaveFile>
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
Auto Trait Implementations§
impl Freeze for SaveFile
impl RefUnwindSafe for SaveFile
impl Send for SaveFile
impl Sync for SaveFile
impl Unpin for SaveFile
impl UnwindSafe for SaveFile
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