pub struct TalentNode {Show 14 fields
pub id: u64,
pub name: String,
pub description: String,
pub ability_id: Option<u64>,
pub modifier_id: Option<u64>,
pub passive_stat_mods: Vec<(String, f32, f32)>,
pub point_cost: u32,
pub max_ranks: u32,
pub current_ranks: u32,
pub position: Vec2,
pub icon_path: String,
pub is_keystone: bool,
pub is_notable: bool,
pub unlock_bonus_at: Option<u32>,
}Fields§
§id: u64§name: String§description: String§ability_id: Option<u64>§modifier_id: Option<u64>§passive_stat_mods: Vec<(String, f32, f32)>§point_cost: u32§max_ranks: u32§current_ranks: u32§position: Vec2§icon_path: String§is_keystone: bool§is_notable: bool§unlock_bonus_at: Option<u32>Implementations§
Source§impl TalentNode
impl TalentNode
pub fn is_fully_ranked(&self) -> bool
pub fn can_invest(&self, available_points: u32) -> bool
pub fn current_stat_mods(&self) -> Vec<(String, f32, f32)>
Trait Implementations§
Source§impl Clone for TalentNode
impl Clone for TalentNode
Auto Trait Implementations§
impl Freeze for TalentNode
impl RefUnwindSafe for TalentNode
impl Send for TalentNode
impl Sync for TalentNode
impl Unpin for TalentNode
impl UnsafeUnpin for TalentNode
impl UnwindSafe for TalentNode
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.