Function screeps::game::creeps

source ·
pub fn creeps() -> JsHashMap<String, Creep>
Expand description

Get a JsHashMap<String, Creep> with all of your creeps, which has creep names as keys.

Note that newly spawned creeps are immediately added when spawned, but will not have an id until the following tick.

Screeps documentation