Expand description
Pure-data structures relating to Screeps.
Modules
- Module for use with
serde’swithattribute to allow serialization of positions as their packed representation, even when using a human-readable serializer.
Structs
- An object that is used to filter returned results from Screeps functions that accept such filters
- Represents an Object ID and a type that the ID points to.
- Represents a position in a particular room in Screeps.
- Represents an Object ID using a packed 12-byte representation
- A structure representing a room name.
Enums
- An error representing when a string can’t be parsed into a
RoomName. - An error representing when a string can’t be parsed into a
RoomName.
Functions
- Converts a linear index from the internal representation of a [
CostMatrix] or [LocalCostMatrix] to aRoomXYcoordinate pair for the position the index represents. - Converts a terrain index from the internal representation of a [
RoomTerrain] or [LocalRoomTerrain] to aRoomXYcoordinate pair for the position the index represents. - Converts a
RoomXYcoordinate pair to a linear index appropriate for use with the internal representation of a [CostMatrix] or [LocalCostMatrix]. - Converts a
RoomXYcoordinate pair to a terrain index appropriate for use with the internal representation of [RoomTerrain] or [LocalRoomTerrain].