Small ordering/set tweaks.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2023-03-31 22:40:12 -05:00
parent d415345d2f
commit cbad1648e8
3 changed files with 10 additions and 13 deletions

View File

@ -399,7 +399,9 @@ where
.register_type::<Explorable>()
.add_plugin(InputManagerPlugin::<ExplorationAction>::default())
.add_system(
exploration_changed_announcement::<ExplorationType, MapData>.pipe(error_handler),
exploration_changed_announcement::<ExplorationType, MapData>
.pipe(error_handler)
.in_base_set(CoreSet::PostUpdate),
);
if config.states.is_empty() {
app.add_systems((

View File

@ -417,15 +417,11 @@ where
.register_type::<RotationSpeed>()
.register_type::<Speed>()
.add_plugin(InputManagerPlugin::<NavigationAction>::default())
.add_system(update_direction.in_base_set(CoreSet::PreUpdate))
.add_systems((update_direction, add_speed).in_base_set(CoreSet::PreUpdate))
.add_systems(
(remove_direction, log_area_descriptions::<State>).in_base_set(CoreSet::PostUpdate),
)
.add_systems((
tick_snap_timers,
speak_direction.pipe(error_handler),
add_speed,
));
.add_systems((tick_snap_timers, speak_direction.pipe(error_handler)));
if self.states.is_empty() {
app.add_systems((controls.in_set(MovementControls), snap.pipe(error_handler)).chain());
} else {

View File

@ -202,12 +202,11 @@ where
fn build(&self, app: &mut App) {
app.insert_resource(self.clone())
.register_type::<SoundIcon>()
.add_system(added)
.add_system(update::<S>.in_base_set(CoreSet::PostUpdate))
.add_system(
exploration_focus_changed
.in_base_set(CoreSet::PostUpdate)
.after(update::<S>),
.add_system(added.in_base_set(CoreSet::PreUpdate))
.add_systems(
(exploration_focus_changed, update::<S>)
.chain()
.in_base_set(CoreSet::PostUpdate),
)
.add_system(
exploration_focus_removed