Enum veloren_common::comp::skillset::SkillGroupKind
source · pub enum SkillGroupKind {
General,
Weapon(ToolKind),
}
Variants§
Implementations§
source§impl SkillGroupKind
impl SkillGroupKind
sourcepub fn skill_point_cost(self, level: u16) -> u32
pub fn skill_point_cost(self, level: u16) -> u32
Gets the cost in experience of earning a skill point Changing this is forward compatible with persistence and will automatically force a respec for skill group kinds that are affected.
sourcepub fn total_skill_point_cost(self) -> u16
pub fn total_skill_point_cost(self) -> u16
Gets the total amount of skill points that can be spent in a particular skill group
Trait Implementations§
source§impl Clone for SkillGroupKind
impl Clone for SkillGroupKind
source§fn clone(&self) -> SkillGroupKind
fn clone(&self) -> SkillGroupKind
Returns a copy 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 SkillGroupKind
impl Debug for SkillGroupKind
source§impl<'de> Deserialize<'de> for SkillGroupKind
impl<'de> Deserialize<'de> for SkillGroupKind
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 SkillGroupKind
impl Hash for SkillGroupKind
source§impl Ord for SkillGroupKind
impl Ord for SkillGroupKind
source§fn cmp(&self, other: &SkillGroupKind) -> Ordering
fn cmp(&self, other: &SkillGroupKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SkillGroupKind
impl PartialEq for SkillGroupKind
source§fn eq(&self, other: &SkillGroupKind) -> bool
fn eq(&self, other: &SkillGroupKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SkillGroupKind
impl PartialOrd for SkillGroupKind
source§fn partial_cmp(&self, other: &SkillGroupKind) -> Option<Ordering>
fn partial_cmp(&self, other: &SkillGroupKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SkillGroupKind
impl Serialize for SkillGroupKind
impl Copy for SkillGroupKind
impl Eq for SkillGroupKind
impl StructuralEq for SkillGroupKind
impl StructuralPartialEq for SkillGroupKind
Auto Trait Implementations§
impl RefUnwindSafe for SkillGroupKind
impl Send for SkillGroupKind
impl Sync for SkillGroupKind
impl Unpin for SkillGroupKind
impl UnwindSafe for SkillGroupKind
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
&self,
_: F
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data
) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data
) using
entity to marker mapping function§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.