pub enum GameNotification {
Event(GameLogEvent),
CardPlayed {
player: PlayerId,
card_id: CardId,
card_name: String,
set_code: String,
},
TurnChanged {
active_player: PlayerId,
turn_number: u32,
},
PhaseChanged {
phase: PhaseType,
},
PriorityChanged {
player: PlayerId,
},
StateChanged,
SnapshotCreated {
checkpoint_id: u64,
label: String,
},
ManaPaymentResolved {
player: PlayerId,
actions: Vec<ManaCostAction>,
},
ActivatedAbilityPaymentFailed {
player: PlayerId,
card_id: CardId,
ability_index: usize,
},
DiceRolled {
player: PlayerId,
sides: i32,
natural_results: Vec<i32>,
final_results: Vec<i32>,
ignored_rolls: Vec<i32>,
source_card_name: Option<String>,
},
FirstPlayerRoll {
sides: i32,
rolls: Vec<(PlayerId, i32)>,
winner: PlayerId,
},
GameOver,
}Variants§
Event(GameLogEvent)
CardPlayed
TurnChanged
PhaseChanged
PriorityChanged
StateChanged
SnapshotCreated
ManaPaymentResolved
ActivatedAbilityPaymentFailed
DiceRolled
Dice were rolled. Display-only — sent for UI animation/feedback.
Mirrors Java’s PlayerController.notifyOfRoll.
Fields
FirstPlayerRoll
Each player rolled a die at the start of the game; the highest roller goes first. Sent once with every player’s final roll so the UI can animate them side-by-side.
Fields
GameOver
Trait Implementations§
Source§impl Clone for GameNotification
impl Clone for GameNotification
Source§fn clone(&self) -> GameNotification
fn clone(&self) -> GameNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GameNotification
impl RefUnwindSafe for GameNotification
impl Send for GameNotification
impl Sync for GameNotification
impl Unpin for GameNotification
impl UnsafeUnpin for GameNotification
impl UnwindSafe for GameNotification
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.