Struct bevy_proto::config::ProtoConfig
source · pub struct ProtoConfig { /* private fields */ }
Expand description
The config resource for Prototype
.
Implementations§
source§impl ProtoConfig
impl ProtoConfig
sourcepub fn on_register_prototype(self, callback: OnRegisterPrototype) -> Self
pub fn on_register_prototype(self, callback: OnRegisterPrototype) -> Self
Register a callback for Config::on_register_prototype
.
sourcepub fn on_reload_prototype(self, callback: OnReloadPrototype) -> Self
pub fn on_reload_prototype(self, callback: OnReloadPrototype) -> Self
Register a callback for Config::on_reload_prototype
.
sourcepub fn on_unregister_prototype(self, callback: OnUnregisterPrototype) -> Self
pub fn on_unregister_prototype(self, callback: OnUnregisterPrototype) -> Self
Register a callback for Config::on_unregister_prototype
.
sourcepub fn on_before_apply_prototype(self, callback: OnBeforeApplyPrototype) -> Self
pub fn on_before_apply_prototype(self, callback: OnBeforeApplyPrototype) -> Self
Register a callback for Config::on_before_apply_prototype
.
sourcepub fn on_after_apply_prototype(self, callback: OnAfterApplyPrototype) -> Self
pub fn on_after_apply_prototype(self, callback: OnAfterApplyPrototype) -> Self
Register a callback for Config::on_after_apply_prototype
.
sourcepub fn on_before_remove_prototype(
self,
callback: OnBeforeRemovePrototype
) -> Self
pub fn on_before_remove_prototype( self, callback: OnBeforeRemovePrototype ) -> Self
Register a callback for Config::on_before_remove_prototype
.
sourcepub fn on_after_remove_prototype(self, callback: OnAfterRemovePrototype) -> Self
pub fn on_after_remove_prototype(self, callback: OnAfterRemovePrototype) -> Self
Register a callback for Config::on_after_remove_prototype
.
sourcepub fn on_before_apply_schematic(self, callback: OnBeforeApplySchematic) -> Self
pub fn on_before_apply_schematic(self, callback: OnBeforeApplySchematic) -> Self
Register a callback for Config::on_before_apply_schematic
.
sourcepub fn on_after_apply_schematic(self, callback: OnAfterApplySchematic) -> Self
pub fn on_after_apply_schematic(self, callback: OnAfterApplySchematic) -> Self
Register a callback for Config::on_after_apply_schematic
.
sourcepub fn on_before_remove_schematic(
self,
callback: OnBeforeRemoveSchematic
) -> Self
pub fn on_before_remove_schematic( self, callback: OnBeforeRemoveSchematic ) -> Self
Register a callback for Config::on_before_remove_schematic
.
sourcepub fn on_after_remove_schematic(self, callback: OnAfterRemoveSchematic) -> Self
pub fn on_after_remove_schematic(self, callback: OnAfterRemoveSchematic) -> Self
Register a callback for Config::on_after_remove_schematic
.
sourcepub fn on_cycle(self, callback: OnCycle) -> Self
pub fn on_cycle(self, callback: OnCycle) -> Self
Register a callback for Config::on_cycle
.
Trait Implementations§
source§impl Config<Prototype> for ProtoConfig
impl Config<Prototype> for ProtoConfig
source§fn on_register_prototype(
&mut self,
prototype: &Prototype,
handle: Handle<Prototype>
)
fn on_register_prototype( &mut self, prototype: &Prototype, handle: Handle<Prototype> )
source§fn on_reload_prototype(
&mut self,
prototype: &Prototype,
handle: Handle<Prototype>
)
fn on_reload_prototype( &mut self, prototype: &Prototype, handle: Handle<Prototype> )
source§fn on_unregister_prototype(&mut self, id: &String, handle: Handle<Prototype>)
fn on_unregister_prototype(&mut self, id: &String, handle: Handle<Prototype>)
source§fn on_before_apply_prototype(
&mut self,
prototype: &Prototype,
context: &mut SchematicContext<'_, '_>
)
fn on_before_apply_prototype( &mut self, prototype: &Prototype, context: &mut SchematicContext<'_, '_> )
source§fn on_after_apply_prototype(
&mut self,
prototype: &Prototype,
context: &mut SchematicContext<'_, '_>
)
fn on_after_apply_prototype( &mut self, prototype: &Prototype, context: &mut SchematicContext<'_, '_> )
source§fn on_before_remove_prototype(
&mut self,
prototype: &Prototype,
context: &mut SchematicContext<'_, '_>
)
fn on_before_remove_prototype( &mut self, prototype: &Prototype, context: &mut SchematicContext<'_, '_> )
source§fn on_after_remove_prototype(
&mut self,
prototype: &Prototype,
context: &mut SchematicContext<'_, '_>
)
fn on_after_remove_prototype( &mut self, prototype: &Prototype, context: &mut SchematicContext<'_, '_> )
source§fn on_before_apply_schematic(
&mut self,
schematic: &DynamicSchematic,
context: &mut SchematicContext<'_, '_>
)
fn on_before_apply_schematic( &mut self, schematic: &DynamicSchematic, context: &mut SchematicContext<'_, '_> )
source§fn on_after_apply_schematic(
&mut self,
schematic: &DynamicSchematic,
context: &mut SchematicContext<'_, '_>
)
fn on_after_apply_schematic( &mut self, schematic: &DynamicSchematic, context: &mut SchematicContext<'_, '_> )
source§fn on_before_remove_schematic(
&mut self,
schematic: &DynamicSchematic,
context: &mut SchematicContext<'_, '_>
)
fn on_before_remove_schematic( &mut self, schematic: &DynamicSchematic, context: &mut SchematicContext<'_, '_> )
source§fn on_after_remove_schematic(
&mut self,
schematic: &DynamicSchematic,
context: &mut SchematicContext<'_, '_>
)
fn on_after_remove_schematic( &mut self, schematic: &DynamicSchematic, context: &mut SchematicContext<'_, '_> )
source§impl Default for ProtoConfig
impl Default for ProtoConfig
source§fn default() -> ProtoConfig
fn default() -> ProtoConfig
Returns the “default value” for a type. Read more
impl Resource for ProtoConfigwhere Self: Send + Sync + 'static,
Auto Trait Implementations§
impl !RefUnwindSafe for ProtoConfig
impl Send for ProtoConfig
impl Sync for ProtoConfig
impl Unpin for ProtoConfig
impl !UnwindSafe for ProtoConfig
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere U: ShaderType, &'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
[ShaderType
] for self
. When used in [AsBindGroup
]
derives, it is safe to assume that all images in self
exist.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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<S, T> FromSchematicInput<T> for Swhere
T: Into<S>,
impl<S, T> FromSchematicInput<T> for Swhere T: Into<S>,
fn from_input(input: T, _context: &mut SchematicContext<'_, '_>) -> S
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World]