Function screeps::raw_memory::segments

source ·
pub fn segments() -> JsHashMap<u8, String>
Expand description

Get a JsHashMap<u8, String> with all of the segments requested on the previous tick, with segment numbers as keys and segment data in JsString form as values.

Screeps documentation