use bevy::ecs::system::Resource;
use crate::inner::SharedGenerators;
use crate::UIImpactFeedbackStyle;
#[derive(Resource, Clone, Debug, Default)]
pub struct ImpactResource {
inner: SharedGenerators,
}
impl ImpactResource {
pub fn prepare(&mut self) {
self.inner.prepare();
}
pub fn impact(&mut self, style: UIImpactFeedbackStyle) {
self.inner.impact(style);
}
pub fn impact_with_intensity(&mut self, style: UIImpactFeedbackStyle, intensity: f64) {
self.inner.impact_with_intensity(style, intensity);
}
}