pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn game(&self) -> Game
pub fn snapshot(&self) -> &Snapshot
pub fn capabilities(&self) -> &Capabilities
pub fn special_stats(&self) -> Vec<StatEntry>
pub fn derived_stats_nonzero(&self) -> Vec<StatEntry>
pub fn skills(&self) -> Vec<SkillEntry>
pub fn active_perks(&self) -> Vec<PerkEntry>
pub fn selected_traits(&self) -> Vec<TraitEntry>
pub fn all_kill_counts(&self) -> Vec<KillCountEntry>
pub fn nonzero_kill_counts(&self) -> Vec<KillCountEntry>
pub fn map_files(&self) -> Vec<String>
pub fn age(&self) -> i32
pub fn max_hp(&self) -> i32
pub fn next_level_xp(&self) -> i32
pub fn stat(&self, index: usize) -> StatEntry
pub fn all_derived_stats(&self) -> Vec<StatEntry>
pub fn inventory(&self) -> Vec<InventoryEntry>
pub fn inventory_resolved( &self, catalog: &ItemCatalog, ) -> Vec<ResolvedInventoryEntry>
pub fn inventory_total_weight_lbs(&self, catalog: &ItemCatalog) -> Option<i32>
pub fn to_bytes_unmodified(&self) -> Result<Vec<u8>, CoreError>
pub fn to_bytes_modified(&self) -> Result<Vec<u8>, CoreError>
pub fn current_hp(&self) -> Option<i32>
pub fn set_hp(&mut self, hp: i32) -> Result<(), CoreError>
pub fn set_base_stat( &mut self, stat_index: usize, value: i32, ) -> Result<(), CoreError>
pub fn set_gender(&mut self, gender: Gender) -> Result<(), CoreError>
pub fn set_age(&mut self, age: i32) -> Result<(), CoreError>
pub fn set_level(&mut self, level: i32) -> Result<(), CoreError>
pub fn set_experience(&mut self, experience: i32) -> Result<(), CoreError>
pub fn set_skill_points(&mut self, skill_points: i32) -> Result<(), CoreError>
pub fn set_reputation(&mut self, reputation: i32) -> Result<(), CoreError>
pub fn set_karma(&mut self, karma: i32) -> Result<(), CoreError>
pub fn set_trait( &mut self, slot: usize, trait_index: usize, ) -> Result<(), CoreError>
pub fn clear_trait(&mut self, slot: usize) -> Result<(), CoreError>
pub fn set_perk_rank( &mut self, perk_index: usize, rank: i32, ) -> Result<(), CoreError>
pub fn clear_perk(&mut self, perk_index: usize) -> Result<(), CoreError>
pub fn set_inventory_quantity( &mut self, pid: i32, quantity: i32, ) -> Result<(), CoreError>
pub fn add_inventory_item( &mut self, pid: i32, quantity: i32, ) -> Result<(), CoreError>
pub fn remove_inventory_item( &mut self, pid: i32, quantity: Option<i32>, ) -> Result<(), CoreError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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