[][src]Enum dsa::output::Output

pub enum Output {
    Roll {
        success: bool,
        critical: bool,
        remainder: isize,
        base: isize,
        mods: isize,
        checks: [Quality; 3],
        stat: [isize; 3],
        dice: [isize; 3],
    },
    Gauge {
        name: String,
        current: isize,
        max: isize,
    },
    Dump(Hero),
}

Types of output generated by an Action.

Variants

Roll

The result of a dice roll for a certain skill.

Fields of Roll

success: bool

Whether or not it was successful.

critical: bool

Whether the success/fail is critical.

remainder: isize

How many points of the skill did remain.

base: isize

The qualitiy to be rolled against.

mods: isize

The sum of all modifiers placed on the roll.

checks: [Quality; 3]

Which qualities were rolled against.

stat: [isize; 3]

The corresponding stat values.

dice: [isize; 3]

The raw dice rolls.

Gauge

Any kind of gauge used to keep track during a cli session, e.g. health or stamina.

Fields of Gauge

name: String

The name of the tracked attribute.

current: isize

The current value.

max: isize

The maximum value.

Dump(Hero)

Dump of the hero structure.

Trait Implementations

impl Clone for Output[src]

impl Debug for Output[src]

Auto Trait Implementations

impl RefUnwindSafe for Output

impl Send for Output

impl Sync for Output

impl Unpin for Output

impl UnwindSafe for Output

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]