pub enum AbilityTemplate {
Show 28 variants
Vanilla,
ContinuousPower {
amount: i32,
},
ContinuousCannotAttack,
ContinuousAttackCost {
cost: u8,
},
AutoOnPlayDraw {
count: u8,
},
AutoOnPlaySalvage {
count: u8,
optional: bool,
card_type: Option<CardType>,
},
AutoOnPlaySearchDeckTop {
count: u8,
optional: bool,
card_type: Option<CardType>,
},
AutoOnPlayRevealDeckTop {
count: u8,
},
AutoOnPlayStockCharge {
count: u8,
},
AutoOnPlayMillTop {
count: u8,
},
AutoOnPlayHeal {
count: u8,
},
AutoOnAttackDealDamage {
amount: u8,
cancelable: bool,
},
AutoEndPhaseDraw {
count: u8,
},
AutoOnReverseDraw {
count: u8,
},
AutoOnReverseSalvage {
count: u8,
optional: bool,
card_type: Option<CardType>,
},
EventDealDamage {
amount: u8,
cancelable: bool,
},
ActivatedPlaceholder,
ActivatedTargetedPower {
amount: i32,
count: u8,
target: TargetTemplate,
},
ActivatedPaidTargetedPower {
cost: u8,
amount: i32,
count: u8,
target: TargetTemplate,
},
ActivatedTargetedMoveToHand {
count: u8,
target: TargetTemplate,
},
ActivatedPaidTargetedMoveToHand {
cost: u8,
count: u8,
target: TargetTemplate,
},
ActivatedChangeController {
count: u8,
target: TargetTemplate,
},
ActivatedPaidChangeController {
cost: u8,
count: u8,
target: TargetTemplate,
},
CounterBackup {
power: i32,
},
CounterDamageReduce {
amount: u8,
},
CounterDamageCancel,
AbilityDef(AbilityDef),
Unsupported {
id: u32,
},
}Variants§
Vanilla
ContinuousPower
ContinuousCannotAttack
ContinuousAttackCost
AutoOnPlayDraw
AutoOnPlaySalvage
AutoOnPlaySearchDeckTop
AutoOnPlayRevealDeckTop
AutoOnPlayStockCharge
AutoOnPlayMillTop
AutoOnPlayHeal
AutoOnAttackDealDamage
AutoEndPhaseDraw
AutoOnReverseDraw
AutoOnReverseSalvage
EventDealDamage
ActivatedPlaceholder
ActivatedTargetedPower
ActivatedPaidTargetedPower
ActivatedTargetedMoveToHand
ActivatedPaidTargetedMoveToHand
ActivatedChangeController
ActivatedPaidChangeController
CounterBackup
CounterDamageReduce
CounterDamageCancel
AbilityDef(AbilityDef)
Unsupported
Implementations§
Source§impl AbilityTemplate
impl AbilityTemplate
pub fn tag(&self) -> AbilityTemplateTag
pub fn activation_cost(&self) -> Option<u8>
pub fn activation_cost_spec(&self) -> AbilityCost
Trait Implementations§
Source§impl Clone for AbilityTemplate
impl Clone for AbilityTemplate
Source§fn clone(&self) -> AbilityTemplate
fn clone(&self) -> AbilityTemplate
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 AbilityTemplate
impl Debug for AbilityTemplate
Source§impl<'de> Deserialize<'de> for AbilityTemplate
impl<'de> Deserialize<'de> for AbilityTemplate
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 AbilityTemplate
impl Hash for AbilityTemplate
Source§impl PartialEq for AbilityTemplate
impl PartialEq for AbilityTemplate
Source§impl Serialize for AbilityTemplate
impl Serialize for AbilityTemplate
impl Eq for AbilityTemplate
impl StructuralPartialEq for AbilityTemplate
Auto Trait Implementations§
impl Freeze for AbilityTemplate
impl RefUnwindSafe for AbilityTemplate
impl Send for AbilityTemplate
impl Sync for AbilityTemplate
impl Unpin for AbilityTemplate
impl UnwindSafe for AbilityTemplate
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