[][src]Struct screeps_api::RoomTerrain

pub struct RoomTerrain {
    pub room_name: RoomName,
    pub response_id: String,
    pub terrain: TerrainGrid,
    // some fields omitted
}

Structure describing the terrain of a room

Fields

room_name: RoomName

The name of the room

response_id: String

Cache ID? Not sure exactly...

terrain: TerrainGrid

A 50x50 grid of terrain squares. When coming from the API, this is guaranteed to be completely filled, and accessing any square between (0, 0) and (49, 49) inclusive will succeed.

You can use terrain[y_pos][x_pos] to get any individual terrain square.

Trait Implementations

impl Clone for RoomTerrain[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for RoomTerrain[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,