[][src]Function screeps::raw_memory::drop_segment

pub fn drop_segment(id: u32)

This drops the reference to a segment; it doesn't affect the content of the segment.

This is the equivalent of doing delete RawMemory.segments[id]. Again, this only deletes the local view of the segment, not the serialized one. It may be used to set_segment a new segment that wasn't part of the original 10 active segments.