Module screeps::local

source ·
Expand description

Pure-data structures relating to Screeps.

Modules

  • Module for use with serde’s with attribute to allow serialization of positions as their packed representation, even when using a human-readable serializer.

Structs

Enums

Functions

  • Converts a linear index from the internal representation of a [CostMatrix] or [LocalCostMatrix] to a RoomXY coordinate pair for the position the index represents.
  • Converts a terrain index from the internal representation of a [RoomTerrain] or [LocalRoomTerrain] to a RoomXY coordinate pair for the position the index represents.
  • Converts a RoomXY coordinate pair to a linear index appropriate for use with the internal representation of a [CostMatrix] or [LocalCostMatrix].
  • Converts a RoomXY coordinate pair to a terrain index appropriate for use with the internal representation of [RoomTerrain] or [LocalRoomTerrain].