pub struct LinkedBuilding {
pub unit_id: UnitTypeID,
pub x_offset: f32,
pub y_offset: f32,
}
Expand description
A linked, or “Annex” building. These allow for buildings made up of multiple pieces with different behaviour, like the Town Centre with some walkable tiles and some non-walkable tiles.
Fields§
§unit_id: UnitTypeID
Unit type ID for this linked building.
x_offset: f32
X offset in tiles from the centre of the “owner” building.
y_offset: f32
Y offset in tiles from the centre of the “owner” building.
Implementations§
Trait Implementations§
Source§impl Clone for LinkedBuilding
impl Clone for LinkedBuilding
Source§fn clone(&self) -> LinkedBuilding
fn clone(&self) -> LinkedBuilding
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 LinkedBuilding
impl Debug for LinkedBuilding
Source§impl Default for LinkedBuilding
impl Default for LinkedBuilding
Source§fn default() -> LinkedBuilding
fn default() -> LinkedBuilding
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinkedBuilding
impl RefUnwindSafe for LinkedBuilding
impl Send for LinkedBuilding
impl Sync for LinkedBuilding
impl Unpin for LinkedBuilding
impl UnwindSafe for LinkedBuilding
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