pub struct SkillDefinitionBuilder<K, E, S, I> { /* private fields */ }
Expand description
Builder for SkillDefinition
.
Implementations§
Source§impl<K: Clone, E: Clone, S: Clone, I: Clone> SkillDefinitionBuilder<K, E, S, I>
impl<K: Clone, E: Clone, S: Clone, I: Clone> SkillDefinitionBuilder<K, E, S, I>
Sourcepub fn friendly_name(&mut self, value: String) -> &mut Self
pub fn friendly_name(&mut self, value: String) -> &mut Self
The computer friendly name.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
The complete description of this skill.
Sourcepub fn passive(&mut self, value: bool) -> &mut Self
pub fn passive(&mut self, value: bool) -> &mut Self
Whether this skill is will activate automatically once all conditions are met or if it needs to be manually activated.
Sourcepub fn conditions(&mut self, value: Vec<StatCondition<K>>) -> &mut Self
pub fn conditions(&mut self, value: Vec<StatCondition<K>>) -> &mut Self
The stats conditions required to activate this skill.
Sourcepub fn item_conditions(&mut self, value: Vec<(I, usize, UseMode)>) -> &mut Self
pub fn item_conditions(&mut self, value: Vec<(I, usize, UseMode)>) -> &mut Self
The item conditions required to activate this skill.
Sourcepub fn stat_effectors(&mut self, value: Vec<E>) -> &mut Self
pub fn stat_effectors(&mut self, value: Vec<E>) -> &mut Self
The caused stat effectors.
Sourcepub fn build(
&self,
) -> Result<SkillDefinition<K, E, S, I>, SkillDefinitionBuilderError>
pub fn build( &self, ) -> Result<SkillDefinition<K, E, S, I>, SkillDefinitionBuilderError>
Trait Implementations§
Source§impl<K: Clone, E: Clone, S: Clone, I: Clone> Clone for SkillDefinitionBuilder<K, E, S, I>
impl<K: Clone, E: Clone, S: Clone, I: Clone> Clone for SkillDefinitionBuilder<K, E, S, I>
Source§fn clone(&self) -> SkillDefinitionBuilder<K, E, S, I>
fn clone(&self) -> SkillDefinitionBuilder<K, E, S, I>
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 moreAuto Trait Implementations§
impl<K, E, S, I> Freeze for SkillDefinitionBuilder<K, E, S, I>where
S: Freeze,
impl<K, E, S, I> RefUnwindSafe for SkillDefinitionBuilder<K, E, S, I>
impl<K, E, S, I> Send for SkillDefinitionBuilder<K, E, S, I>
impl<K, E, S, I> Sync for SkillDefinitionBuilder<K, E, S, I>
impl<K, E, S, I> Unpin for SkillDefinitionBuilder<K, E, S, I>
impl<K, E, S, I> UnwindSafe for SkillDefinitionBuilder<K, E, S, I>
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