add soul spot resource deposit and fix core placement bug
This commit is contained in:
parent
52da1f8acb
commit
68f4b0d8a0
13 changed files with 171 additions and 27 deletions
|
|
@ -11,6 +11,7 @@ building = { path = "../building" }
|
|||
physics = { path = "../physics" }
|
||||
input = { path = "../input" }
|
||||
combat = { path = "../combat" }
|
||||
state = { path = "../state" }
|
||||
ui_range_indicator = { path = "../ui_range_indicator" }
|
||||
|
||||
[lints]
|
||||
|
|
|
|||
|
|
@ -11,14 +11,20 @@ use building::{
|
|||
use combat::Range;
|
||||
use input::{Cancellable, Inputs, Selected, actions::InputAction};
|
||||
use physics::Ground;
|
||||
use state::GameSystemSet;
|
||||
use ui_range_indicator::DisplayCustomRangeIndicator;
|
||||
|
||||
pub struct BuildingPlacementPlugin;
|
||||
|
||||
impl Plugin for BuildingPlacementPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Update, (init, cancel_preview, select_preview).chain())
|
||||
.add_event::<SelectBuildingPreview>();
|
||||
app.add_systems(
|
||||
Update,
|
||||
(init, cancel_preview, select_preview)
|
||||
.in_set(GameSystemSet::Update)
|
||||
.chain(),
|
||||
)
|
||||
.add_event::<SelectBuildingPreview>();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue