pub struct RecipeBookFilledEvent {
pub recipe_id: RecipeId,
pub make_all: bool,
}Expand description
A player auto-filled a recipe from the recipe book.
Fired at the Post stage on the game bus after the
inventory has been drained and the grid populated. The standard
match cycle (CraftingRecipeMatchedEvent etc.) has already run
at this point, so ctx.player()’s grid reflects the new state.
Fields§
§recipe_id: RecipeIdStable identifier of the filled recipe.
make_all: boolWhether the original request was a shift-click.
Trait Implementations§
Source§impl Clone for RecipeBookFilledEvent
impl Clone for RecipeBookFilledEvent
Source§fn clone(&self) -> RecipeBookFilledEvent
fn clone(&self) -> RecipeBookFilledEvent
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 moreSource§impl Debug for RecipeBookFilledEvent
impl Debug for RecipeBookFilledEvent
Source§impl Event for RecipeBookFilledEvent
impl Event for RecipeBookFilledEvent
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Whether this event has been cancelled by a Validate handler.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Upcasts to
&mut dyn Any for mutable type-erased dispatch.Source§impl EventRouting for RecipeBookFilledEvent
impl EventRouting for RecipeBookFilledEvent
Auto Trait Implementations§
impl Freeze for RecipeBookFilledEvent
impl RefUnwindSafe for RecipeBookFilledEvent
impl Send for RecipeBookFilledEvent
impl Sync for RecipeBookFilledEvent
impl Unpin for RecipeBookFilledEvent
impl UnsafeUnpin for RecipeBookFilledEvent
impl UnwindSafe for RecipeBookFilledEvent
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