Trait ParticlesRegistrar
pub trait ParticlesRegistrar {
// Required method
fn particle_key(&mut self, id: &str) -> ParticleKey;
}Expand description
Load-owned particle key requests, resolved before any world can emit particles.
Required Methods§
fn particle_key(&mut self, id: &str) -> ParticleKey
fn particle_key(&mut self, id: &str) -> ParticleKey
Request a vanilla particle or a custom sprite provider by canonical registry ID. Unknown IDs are reported with the requesting mod when the content registry loads.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".