2020-07-06 14:23:08 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
2021-03-23 08:37:29 +00:00
|
|
|
use specs::{Component, DerefFlaggedStorage};
|
|
|
|
use specs_idvs::IdvStorage;
|
2021-03-23 10:26:43 +00:00
|
|
|
use vek::geom::Aabb;
|
2019-05-22 20:53:24 +00:00
|
|
|
|
2019-07-02 18:19:16 +00:00
|
|
|
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
2021-03-23 08:37:29 +00:00
|
|
|
pub struct CanBuild {
|
|
|
|
pub building_is_on: bool,
|
2021-03-23 10:26:43 +00:00
|
|
|
pub build_area: Aabb<i32>,
|
2021-03-23 08:37:29 +00:00
|
|
|
}
|
2019-07-02 18:19:16 +00:00
|
|
|
impl Component for CanBuild {
|
2021-03-23 08:37:29 +00:00
|
|
|
type Storage = DerefFlaggedStorage<Self, IdvStorage<Self>>;
|
2019-07-02 18:19:16 +00:00
|
|
|
}
|