[][src]Enum wasmdome_domain::events::GameEvent

pub enum GameEvent {
    PositionUpdated {
        mech: String,
        position: Point,
    },
    DamageTaken {
        damage_target: String,
        damage: u32,
        damage_source: DamageSource,
    },
    MechDestroyed {
        damage_target: String,
        damage_source: DamageSource,
    },
    MechSpawned {
        mech: String,
        position: Point,
        team: String,
        avatar: String,
        name: String,
    },
    RadarScanCompleted {
        actor: String,
        results: Vec<RadarPing>,
    },
    ActionPointsConsumed {
        mech: String,
        points_consumed: u32,
    },
    ActionPointsExceeded {
        mech: String,
        cmd: MechCommand,
    },
    MechTurnCompleted {
        mech: String,
        turn: u32,
    },
    MatchTurnCompleted {
        new_turn: u32,
    },
    GameFinished {
        cause: EndCause,
    },
    RegisterUpdate {
        mech: String,
        reg: u32,
        val: RegisterValue,
    },
}

Variants

PositionUpdated

Fields of PositionUpdated

mech: Stringposition: Point
DamageTaken

Fields of DamageTaken

damage_target: Stringdamage: u32damage_source: DamageSource
MechDestroyed

Fields of MechDestroyed

damage_target: Stringdamage_source: DamageSource
MechSpawned

Fields of MechSpawned

mech: Stringposition: Pointteam: Stringavatar: Stringname: String
RadarScanCompleted

Fields of RadarScanCompleted

actor: Stringresults: Vec<RadarPing>
ActionPointsConsumed

Fields of ActionPointsConsumed

mech: Stringpoints_consumed: u32
ActionPointsExceeded

Fields of ActionPointsExceeded

mech: Stringcmd: MechCommand
MechTurnCompleted

Fields of MechTurnCompleted

mech: Stringturn: u32
MatchTurnCompleted

Fields of MatchTurnCompleted

new_turn: u32
GameFinished

Fields of GameFinished

cause: EndCause
RegisterUpdate

Fields of RegisterUpdate

mech: Stringreg: u32val: RegisterValue

Trait Implementations

impl Clone for GameEvent[src]

impl Debug for GameEvent[src]

impl<'de> Deserialize<'de> for GameEvent[src]

impl Event for GameEvent[src]

impl Serialize for GameEvent[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.