pub enum ActionDesc {
Show 19 variants
MulliganConfirm,
MulliganSelect {
hand_index: u8,
},
Pass,
Clock {
hand_index: u8,
},
MainPlayCharacter {
hand_index: u8,
stage_slot: u8,
},
MainPlayEvent {
hand_index: u8,
},
MainMove {
from_slot: u8,
to_slot: u8,
},
MainActivateAbility {
slot: u8,
ability_index: u8,
},
ClimaxPlay {
hand_index: u8,
},
Attack {
slot: u8,
attack_type: AttackType,
},
CounterPlay {
hand_index: u8,
},
LevelUp {
index: u8,
},
EncorePay {
slot: u8,
},
EncoreDecline {
slot: u8,
},
TriggerOrder {
index: u8,
},
ChoiceSelect {
index: u8,
},
ChoicePrevPage,
ChoiceNextPage,
Concede,
}Expand description
Canonical action descriptor used as the truth representation of legal actions.
Variants§
MulliganConfirm
Confirm mulligan without selecting additional cards.
MulliganSelect
Select a hand card for mulligan.
Pass
Pass the current decision.
Clock
Clock a hand card.
MainPlayCharacter
Play a character from hand to a stage slot.
Fields
MainPlayEvent
Play an event from hand.
MainMove
Move a character between stage slots.
Fields
MainActivateAbility
Activate a character ability from a stage slot.
Fields
ClimaxPlay
Play a climax from hand.
Attack
Declare an attack from a stage slot.
CounterPlay
Play a counter from hand.
LevelUp
Select a card for level up.
EncorePay
Pay encore for a character.
EncoreDecline
Decline encore for a character.
TriggerOrder
Select trigger order index.
ChoiceSelect
Select a choice option by index.
ChoicePrevPage
Page to previous choice options.
ChoiceNextPage
Page to next choice options.
Concede
Concede the game.
Trait Implementations§
Source§impl Clone for ActionDesc
impl Clone for ActionDesc
Source§fn clone(&self) -> ActionDesc
fn clone(&self) -> ActionDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionDesc
impl Debug for ActionDesc
Source§impl<'de> Deserialize<'de> for ActionDesc
impl<'de> Deserialize<'de> for ActionDesc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ActionDesc
impl Hash for ActionDesc
Source§impl PartialEq for ActionDesc
impl PartialEq for ActionDesc
Source§impl Serialize for ActionDesc
impl Serialize for ActionDesc
impl Eq for ActionDesc
impl StructuralPartialEq for ActionDesc
Auto Trait Implementations§
impl Freeze for ActionDesc
impl RefUnwindSafe for ActionDesc
impl Send for ActionDesc
impl Sync for ActionDesc
impl Unpin for ActionDesc
impl UnwindSafe for ActionDesc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more