2021-03-26 13:06:20 +00:00
|
|
|
use crate::depot::Id;
|
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 23:59:18 +00:00
|
|
|
pub build_areas: Vec<Id<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
|
|
|
}
|