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
MulliganSelect
Pass
Clock
MainPlayCharacter
MainPlayEvent
MainMove
MainActivateAbility
ClimaxPlay
Attack
CounterPlay
LevelUp
EncorePay
EncoreDecline
TriggerOrder
ChoiceSelect
ChoicePrevPage
ChoiceNextPage
Concede
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