Function screeps::raw_memory::set_active_foreign_segment

source ·
pub fn set_active_foreign_segment(username: &JsString, segment_id: Option<u8>)
Expand description

Sets available foreign memory segment for the next tick to a memory segment marked as public by another user. If no id is passed, the user’s default public segment is retrieved.

Screeps documentation