pub struct UnlockableBuilder<U, K, S, I> { /* private fields */ }
Expand description
Builder for Unlockable
.
Implementations§
Source§impl<U: Clone, K: Clone, S: Clone, I: Clone> UnlockableBuilder<U, K, S, I>
impl<U: Clone, K: Clone, S: Clone, I: Clone> UnlockableBuilder<U, K, S, I>
Sourcepub fn is_unlocked(&mut self, value: bool) -> &mut Self
pub fn is_unlocked(&mut self, value: bool) -> &mut Self
Whether we unlocked it or not.
Sourcepub fn unlock_stat_conditions(
&mut self,
value: Vec<StatCondition<S>>,
) -> &mut Self
pub fn unlock_stat_conditions( &mut self, value: Vec<StatCondition<S>>, ) -> &mut Self
The stat conditions required to unlock this element.
Sourcepub fn unlock_item_conditions(
&mut self,
value: Vec<(I, usize, UseMode)>,
) -> &mut Self
pub fn unlock_item_conditions( &mut self, value: Vec<(I, usize, UseMode)>, ) -> &mut Self
The item conditions required to unlock this element.
Sourcepub fn unlock_dependencies(&mut self, value: Vec<U>) -> &mut Self
pub fn unlock_dependencies(&mut self, value: Vec<U>) -> &mut Self
A list of other unlockables upon which this one depends. If Unlockable B depends on A, then A must be unlocked before B can be unlocked.
Sourcepub fn build(&self) -> Result<Unlockable<U, K, S, I>, UnlockableBuilderError>
pub fn build(&self) -> Result<Unlockable<U, K, S, I>, UnlockableBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl<U, K, S, I> Freeze for UnlockableBuilder<U, K, S, I>
impl<U, K, S, I> RefUnwindSafe for UnlockableBuilder<U, K, S, I>
impl<U, K, S, I> Send for UnlockableBuilder<U, K, S, I>
impl<U, K, S, I> Sync for UnlockableBuilder<U, K, S, I>
impl<U, K, S, I> Unpin for UnlockableBuilder<U, K, S, I>
impl<U, K, S, I> UnwindSafe for UnlockableBuilder<U, K, 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