Move the minimap code from common to sandbox, reflecting where it's used. (Never in debug or edit mode)

This commit is contained in:
Dustin Carlino 2021-03-06 16:20:32 -08:00
parent d5d186dd37
commit 3f32c7abf3
4 changed files with 6 additions and 6 deletions

View File

@ -9,13 +9,11 @@ use widgetry::{
ScreenPt, ScreenRectangle, Text, TextSpan, Toggle, VerticalAlignment, Widget,
};
pub use self::minimap::MinimapController;
pub use self::warp::Warping;
use crate::app::App;
use crate::app::Transition;
use crate::info::{ContextualActions, InfoPanel, Tab};
mod minimap;
mod warp;
// TODO This is now just used in two modes...

View File

@ -19,12 +19,12 @@ use widgetry::{
use crate::app::{App, Transition};
use crate::challenges::cutscene::CutsceneBuilder;
use crate::common::{tool_panel, MinimapController, Warping};
use crate::common::{tool_panel, Warping};
use crate::edit::EditMode;
use crate::sandbox::gameplay::{GameplayMode, GameplayState};
use crate::sandbox::{
maybe_exit_sandbox, spawn_agents_around, Actions, AgentMeter, SandboxControls, SandboxMode,
SpeedControls, TimePanel,
maybe_exit_sandbox, spawn_agents_around, Actions, AgentMeter, MinimapController,
SandboxControls, SandboxMode, SpeedControls, TimePanel,
};
const ESCORT: CarID = CarID(0, VehicleType::Car);

View File

@ -16,11 +16,12 @@ use widgetry::{
};
pub use self::gameplay::{spawn_agents_around, GameplayMode, TutorialPointer, TutorialState};
pub use self::minimap::MinimapController;
use self::misc_tools::{RoutePreview, TrafficRecorder};
pub use self::speed::{SpeedControls, SpeedSetting, TimePanel};
pub use self::time_warp::TimeWarpScreen;
use crate::app::{App, Transition};
use crate::common::{tool_panel, CommonState, MinimapController};
use crate::common::{tool_panel, CommonState};
use crate::debug::DebugMode;
use crate::edit::{
can_edit_lane, EditMode, LaneEditor, SaveEdits, StopSignEditor, TrafficSignalEditor,
@ -32,6 +33,7 @@ use crate::pregame::MainMenu;
pub mod dashboards;
pub mod gameplay;
mod minimap;
mod misc_tools;
mod speed;
mod time_warp;