show range indicator when placing tower, cleanup tower info stats
This commit is contained in:
parent
e6b04bbdd1
commit
3a25a1bd87
9 changed files with 106 additions and 49 deletions
|
|
@ -4,7 +4,10 @@
|
|||
|
||||
use avian3d::prelude::SpatialQuery;
|
||||
use bevy::prelude::*;
|
||||
use building::{Building, BuildingInfo, BuildingPreview, Core, PlaceBuilding, valid_placement};
|
||||
use building::{
|
||||
ActiveBuildingPreview, Building, BuildingInfo, BuildingPreview, Core, PlaceBuilding,
|
||||
valid_placement,
|
||||
};
|
||||
use combat::Range;
|
||||
use input::{Cancellable, Inputs, Selected, actions::InputAction};
|
||||
use physics::Ground;
|
||||
|
|
@ -19,9 +22,6 @@ impl Plugin for BuildingPlacementPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Component, Default)]
|
||||
pub struct ActiveBuildingPreview(pub IVec3);
|
||||
|
||||
#[derive(Event)]
|
||||
pub struct SelectBuildingPreview(pub Option<Entity>);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue