Struct game_features::SkillInstance [−][src]
pub struct SkillInstance<S> { pub skill_key: S, pub current_cooldown: f64, }
Expand description
An instance of a skill. There is one per skill per entity that can use it. Holds the cooldown for each skill.
Fields
skill_key: S
Expand description
The skill key.
current_cooldown: f64
Expand description
The remaining time to wait before we can use this skill again.
Implementations
impl<S> SkillInstance<S>
[src]
impl<S> SkillInstance<S>
[src]Trait Implementations
impl<S: Clone> Clone for SkillInstance<S>
[src]
impl<S: Clone> Clone for SkillInstance<S>
[src]fn clone(&self) -> SkillInstance<S>
[src]
fn clone(&self) -> SkillInstance<S>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for SkillInstance<S>
[src]
impl<S: Debug> Debug for SkillInstance<S>
[src]impl<'de, S> Deserialize<'de> for SkillInstance<S> where
S: Deserialize<'de>,
[src]
impl<'de, S> Deserialize<'de> for SkillInstance<S> where
S: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for SkillInstance<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for SkillInstance<S> where
S: Send,
S: Send,
impl<S> Sync for SkillInstance<S> where
S: Sync,
S: Sync,
impl<S> Unpin for SkillInstance<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for SkillInstance<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,