1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Housing definitions.
use getset::CopyGetters;
use serde::{Deserialize, Serialize};
use crate::building::storage;
/// Defines a housing feature.
#[derive(Debug, Clone, CopyGetters, Serialize, Deserialize)]
#[cfg_attr(feature = "xy", derive(xylem::Xylem))]
#[cfg_attr(feature = "xy", xylem(derive(Deserialize)))]
pub struct Housing {
/// The population storage that the housing is located in.
#[getset(get_copy = "pub")]
storage: storage::population::Id,
}