Struct screeps_api::endpoints::room_terrain::RoomTerrain [] [src]

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

The name of the room

Cache ID? Not sure exactly...

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RoomTerrain
[src]

[src]

Formats the value using the given formatter.