[−][src]Struct genie_dat::LinkedBuilding
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
impl LinkedBuilding
[src]
pub fn read_from(input: impl Read) -> Result<Self>
[src]
pub fn write_to(&self, output: impl Write) -> Result<()>
[src]
Trait Implementations
impl Clone for LinkedBuilding
[src]
fn clone(&self) -> LinkedBuilding
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LinkedBuilding
[src]
impl Default for LinkedBuilding
[src]
fn default() -> LinkedBuilding
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinkedBuilding
impl Send for LinkedBuilding
impl Sync for LinkedBuilding
impl Unpin for LinkedBuilding
impl UnwindSafe for LinkedBuilding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,