pub struct ResetEntropyTrigger<'a, R, P>where
R: BattleRules,
P: EventProcessor<R>,{ /* private fields */ }Expand description
Trigger to build and fire a ResetEntropy event.
Implementations§
Source§impl<'a, R, P> ResetEntropyTrigger<'a, R, P>where
R: BattleRules + 'static,
P: EventProcessor<R>,
impl<'a, R, P> ResetEntropyTrigger<'a, R, P>where
R: BattleRules + 'static,
P: EventProcessor<R>,
Sourcepub fn seed(&'a mut self, seed: EntropySeed<R>) -> &'a mut Self
pub fn seed(&'a mut self, seed: EntropySeed<R>) -> &'a mut Self
Adds a seed to drive the generation of the new entropy model.
Trait Implementations§
Source§impl<'a, R, P> EventTrigger<'a, R, P> for ResetEntropyTrigger<'a, R, P>where
R: BattleRules + 'static,
P: EventProcessor<R>,
impl<'a, R, P> EventTrigger<'a, R, P> for ResetEntropyTrigger<'a, R, P>where
R: BattleRules + 'static,
P: EventProcessor<R>,
Source§fn fire(&'a mut self) -> P::ProcessOutput
fn fire(&'a mut self) -> P::ProcessOutput
Fires the event constructed by this builder.
Source§fn prototype(&self) -> EventPrototype<R>
fn prototype(&self) -> EventPrototype<R>
Returns the event constructed by this builder, wrapped in a prototype.
Auto Trait Implementations§
impl<'a, R, P> Freeze for ResetEntropyTrigger<'a, R, P>
impl<'a, R, P> RefUnwindSafe for ResetEntropyTrigger<'a, R, P>
impl<'a, R, P> Send for ResetEntropyTrigger<'a, R, P>where
P: Send,
impl<'a, R, P> Sync for ResetEntropyTrigger<'a, R, P>
impl<'a, R, P> Unpin for ResetEntropyTrigger<'a, R, P>
impl<'a, R, P> !UnwindSafe for ResetEntropyTrigger<'a, R, P>
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