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
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(&self) -> RoomTerrain
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more