Compare commits
2 Commits
9d5925b4d0
...
6ff5eb15a9
Author | SHA1 | Date | |
---|---|---|---|
6ff5eb15a9 | |||
6ac7beb788 |
|
@ -36,6 +36,6 @@ maze_generator = "2"
|
|||
once_cell = "1"
|
||||
pathfinding = "3"
|
||||
rand = "0.8"
|
||||
sentry = "0.26"
|
||||
sentry = "0.27"
|
||||
serde = "1"
|
||||
shadowcast = "0.8"
|
|
@ -438,20 +438,23 @@ impl<S, A> Default for ExplorationConfig<S, A> {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct ExplorationPlugin<'a, S, A, D>(PhantomData<&'a S>, PhantomData<&'a A>, PhantomData<D>);
|
||||
pub struct ExplorationPlugin<'a, S: 'static, A: 'static, D>(
|
||||
PhantomData<&'a S>,
|
||||
PhantomData<&'static A>,
|
||||
PhantomData<D>,
|
||||
);
|
||||
|
||||
impl<'a, S, A, D> Default for ExplorationPlugin<'a, S, A, D> {
|
||||
impl<S, A, D> Default for ExplorationPlugin<'static, S, A, D> {
|
||||
fn default() -> Self {
|
||||
Self(PhantomData, PhantomData, PhantomData)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, S, A, D> Plugin for ExplorationPlugin<'a, S, A, D>
|
||||
impl<S, A, D> Plugin for ExplorationPlugin<'static, S, A, D>
|
||||
where
|
||||
S: Clone + Debug + Eq + Hash + Send + Sync,
|
||||
A: Hash + Eq + Clone + Send + Sync,
|
||||
D: 'static + Clone + Default + Send + Sync,
|
||||
'a: 'static,
|
||||
{
|
||||
fn build(&self, app: &mut App) {
|
||||
if !app.world.contains_resource::<ExplorationConfig<S, A>>() {
|
||||
|
|
|
@ -365,11 +365,10 @@ impl<'a, S, A> Default for NavigationPlugin<'a, S, A> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, S, A> Plugin for NavigationPlugin<'a, S, A>
|
||||
impl<S, A> Plugin for NavigationPlugin<'static, S, A>
|
||||
where
|
||||
S: 'static + Clone + Copy + Debug + Eq + Hash + Send + Sync,
|
||||
A: Hash + Eq + Copy + Send + Sync,
|
||||
'a: 'static,
|
||||
{
|
||||
fn build(&self, app: &mut App) {
|
||||
if !app.world.contains_resource::<NavigationConfig<S, A>>() {
|
||||
|
|
|
@ -287,10 +287,9 @@ impl<'a, S> Default for SoundIconPlugin<'a, S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, S> Plugin for SoundIconPlugin<'a, S>
|
||||
impl<S> Plugin for SoundIconPlugin<'static, S>
|
||||
where
|
||||
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||
'a: 'static,
|
||||
{
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_system(added)
|
||||
|
|
|
@ -28,10 +28,9 @@ impl<'a, S> Default for SoundPlugin<'a, S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, S> Plugin for SoundPlugin<'a, S>
|
||||
impl<S> Plugin for SoundPlugin<'static, S>
|
||||
where
|
||||
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||
'a: 'static,
|
||||
{
|
||||
fn build(&self, app: &mut App) {
|
||||
let _core_config = *app.world.get_resource::<CoreConfig>().unwrap();
|
||||
|
|
Loading…
Reference in New Issue
Block a user