Skip to main content

SaveGame

Struct SaveGame 

Source
pub struct SaveGame {
Show 14 fields pub header: SaveHeader, pub player_combat_id: i32, pub global_var_count: usize, pub map_files: Vec<String>, pub player_object: GameObject, pub center_tile: i32, pub critter_data: CritterProtoData, pub gender: Gender, pub kill_counts: [i32; 15], pub tagged_skills: [i32; 4], pub perks: [i32; 64], pub combat_state: CombatState, pub pc_stats: PcStats, pub selected_traits: [i32; 2],
}

Fields§

§header: SaveHeader§player_combat_id: i32§global_var_count: usize§map_files: Vec<String>§player_object: GameObject§center_tile: i32§critter_data: CritterProtoData§gender: Gender§kill_counts: [i32; 15]§tagged_skills: [i32; 4]§perks: [i32; 64]§combat_state: CombatState§pc_stats: PcStats§selected_traits: [i32; 2]

Implementations§

Source§

impl SaveGame

Source

pub fn effective_skill_value(&self, skill_index: usize) -> i32

Compute the effective (displayed) skill value, matching fallout1-ce skill_level().

Source

pub fn skill_tag_bonus(&self, skill_index: usize) -> i32

Return only the contribution from tagging logic for one skill.

Source§

impl SaveGame

Source

pub fn parse<R: Read + Seek>(reader: R) -> Result<Self>

Trait Implementations§

Source§

impl Debug for SaveGame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.