Crate screeps_room_regions

Source

Modules§

distance_transform
Used for calculating the standard distance transforms of tiles from walls
region_analysis
Used for top-level region analysis of rooms
tile_map
Home of the ever-helpful TileMap struct

Functions§

get_region_analysis_for_room_by_terrain
Generates a room region analysis given the room terrain. You should be able to use the returned RoomRegionAnalysis to get your regions for processing.