[−][src]Struct dsa::Hero
Public container for the hero attributes.
The fields themselves are documented below.
All fields are public to allow for easy data access.
Hero implements std::str::FromStr so parse()
can be called on a str
containing the xml export of the Heldensoftware.
Examples
use dsa::Hero; let hero = "<helden>…</helden>".parse::<Hero>(); assert!(hero.is_err());
Fields
name: String
Hero's name, e.g. Elvenor Elvington
health: isize
Maximum health as per base+(KO+KO+KK)/2
stamina: isize
Maximum stamina as per base+(MU+KO+GE)/2
astral: isize
Maximum astral points as per base+(MU+IN+CH)/2
qualities: HashMap<Quality, isize>
The basic attributes (MU, KL, etc.)
skills: HashMap<String, (isize, [Quality; 3])>
All skills documented in the xml, as a map of name to skill-level and attributes to roll on
Trait Implementations
impl Clone for Hero
[src]
impl Debug for Hero
[src]
impl Default for Hero
[src]
impl FromStr for Hero
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hero
impl Send for Hero
impl Sync for Hero
impl Unpin for Hero
impl UnwindSafe for Hero
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,