[][src]Struct genie_dat::LinkedBuilding

pub struct LinkedBuilding {
    pub unit_id: UnitTypeID,
    pub x_offset: f32,
    pub y_offset: f32,
}

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]

impl Debug for LinkedBuilding[src]

impl Default for LinkedBuilding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.