pub struct Ability {
pub id: AbilityId,
pub name: String,
pub target: AbilityTarget,
pub cast_range: Option<R32>,
pub energy_cost: Option<u32>,
pub cost: Cost,
pub effect: Vec<()>,
pub buff: Vec<()>,
pub cooldown: Option<R32>,
}
Expand description
Ability
Fields§
§id: AbilityId
Id
name: String
Name
target: AbilityTarget
Target type and data
cast_range: Option<R32>
Cast range
energy_cost: Option<u32>
Energy cost
cost: Cost
Monetary / time cost
effect: Vec<()>
Effects
buff: Vec<()>
Buffs
cooldown: Option<R32>
Cooldown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ability
impl<'de> Deserialize<'de> for Ability
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
impl Eq for Ability
impl StructuralPartialEq for Ability
Auto Trait Implementations§
impl Freeze for Ability
impl RefUnwindSafe for Ability
impl Send for Ability
impl Sync for Ability
impl Unpin for Ability
impl UnwindSafe for Ability
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