pub struct Document {
pub save: SaveGame,
/* private fields */
}Fields§
§save: SaveGameImplementations§
Source§impl Document
impl Document
pub fn parse_with_layout<R: Read + Seek>(reader: R) -> Result<Self>
pub fn layout(&self) -> &FileLayout
pub fn supports_editing(&self) -> bool
pub fn to_bytes_unmodified(&self) -> Result<Vec<u8>>
pub fn to_bytes_modified(&self) -> Result<Vec<u8>>
pub fn set_hp(&mut self, hp: i32) -> Result<()>
pub fn set_base_stat(&mut self, stat_index: usize, value: i32) -> Result<()>
pub fn set_age(&mut self, age: i32) -> Result<()>
pub fn set_gender(&mut self, gender: Gender) -> Result<()>
pub fn set_level(&mut self, level: i32) -> Result<()>
pub fn set_experience(&mut self, experience: i32) -> Result<()>
pub fn set_skill_points(&mut self, skill_points: i32) -> Result<()>
pub fn set_reputation(&mut self, reputation: i32) -> Result<()>
pub fn set_karma(&mut self, karma: i32) -> Result<()>
pub fn set_trait(&mut self, slot: usize, trait_index: i32) -> Result<()>
pub fn clear_trait(&mut self, slot: usize) -> Result<()>
pub fn set_perk_rank(&mut self, perk_index: usize, rank: i32) -> Result<()>
pub fn clear_perk(&mut self, perk_index: usize) -> Result<()>
pub fn set_inventory_quantity(&mut self, pid: i32, quantity: i32) -> Result<()>
pub fn add_inventory_item(&mut self, pid: i32, quantity: i32) -> Result<()>
pub fn remove_inventory_item( &mut self, pid: i32, quantity: Option<i32>, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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