veloren/common/src/comp/inputs.rs

14 lines
381 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
use specs::{Component, DerefFlaggedStorage};
use specs_idvs::IdvStorage;
2021-03-23 10:26:43 +00:00
use vek::geom::Aabb;
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
pub struct CanBuild {
pub building_is_on: bool,
2021-03-23 10:26:43 +00:00
pub build_area: Aabb<i32>,
}
impl Component for CanBuild {
type Storage = DerefFlaggedStorage<Self, IdvStorage<Self>>;
}