pub struct DefaultSynthesisHook;Expand description
Default hook (no customization)
Trait Implementations§
Source§impl Clone for DefaultSynthesisHook
impl Clone for DefaultSynthesisHook
Source§fn clone(&self) -> DefaultSynthesisHook
fn clone(&self) -> DefaultSynthesisHook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DefaultSynthesisHook
Source§impl Debug for DefaultSynthesisHook
impl Debug for DefaultSynthesisHook
Source§impl Default for DefaultSynthesisHook
impl Default for DefaultSynthesisHook
Source§fn default() -> DefaultSynthesisHook
fn default() -> DefaultSynthesisHook
Returns the “default value” for a type. Read more
Source§impl SynthesisHook for DefaultSynthesisHook
impl SynthesisHook for DefaultSynthesisHook
Source§fn consume_ingredients<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_ingredients: &'life2 [(IngredientType, u32)],
) -> Pin<Box<dyn Future<Output = Result<(), SynthesisError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn consume_ingredients<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_ingredients: &'life2 [(IngredientType, u32)],
) -> Pin<Box<dyn Future<Output = Result<(), SynthesisError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Consume ingredients from inventory/resources Read more
Source§fn apply_synthesis_result<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_result: &'life2 SynthesisResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply_synthesis_result<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_result: &'life2 SynthesisResult,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Apply synthesis result to game state Read more
Source§fn refund_ingredients<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_ingredients: &'life2 [(IngredientType, u32)],
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn refund_ingredients<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_ingredients: &'life2 [(IngredientType, u32)],
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Refund ingredients on failure Read more
Source§fn get_skill_modifier<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_skill_modifier<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get skill modifier for success rate Read more
Source§fn generate_byproduct<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn generate_byproduct<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Generate byproduct Read more
Source§fn on_synthesis_started<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_synthesis_started<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Synthesis started event Read more
Source§fn on_synthesis_success<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
_quality: f32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_synthesis_success<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
_quality: f32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Synthesis succeeded event Read more
Source§fn on_synthesis_failure<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_synthesis_failure<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Synthesis failed event Read more
Source§fn on_recipe_discovered<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_recipe_discovered<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_entity_id: &'life1 EntityId,
_recipe_id: &'life2 RecipeId,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Recipe discovered event Read more
Auto Trait Implementations§
impl Freeze for DefaultSynthesisHook
impl RefUnwindSafe for DefaultSynthesisHook
impl Send for DefaultSynthesisHook
impl Sync for DefaultSynthesisHook
impl Unpin for DefaultSynthesisHook
impl UnsafeUnpin for DefaultSynthesisHook
impl UnwindSafe for DefaultSynthesisHook
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more