pub struct TechTreeBuilding {
pub depends_tech_id: Option<TechID>,
pub dependent_buildings: Vec<UnitTypeID>,
pub dependent_units: Vec<UnitTypeID>,
pub dependent_techs: Vec<TechID>,
/* private fields */
}
Fields§
§depends_tech_id: Option<TechID>
The tech ID that makes this building available. None
if the building is available without
requiring any techs.
dependent_buildings: Vec<UnitTypeID>
The buildings that become available by building this building.
dependent_units: Vec<UnitTypeID>
The units that become available by building this building.
dependent_techs: Vec<TechID>
The techs that become available by building this building.
Implementations§
Trait Implementations§
Source§impl Clone for TechTreeBuilding
impl Clone for TechTreeBuilding
Source§fn clone(&self) -> TechTreeBuilding
fn clone(&self) -> TechTreeBuilding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TechTreeBuilding
impl Debug for TechTreeBuilding
Source§impl Default for TechTreeBuilding
impl Default for TechTreeBuilding
Source§fn default() -> TechTreeBuilding
fn default() -> TechTreeBuilding
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TechTreeBuilding
impl RefUnwindSafe for TechTreeBuilding
impl Send for TechTreeBuilding
impl Sync for TechTreeBuilding
impl Unpin for TechTreeBuilding
impl UnwindSafe for TechTreeBuilding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more