Module screeps::inter_shard_memory
source · Available on crate feature
inter-shard-memory only.Expand description
Interface for Screeps inter-shard memory, allowing communication between instances of your code running on different shards.
Functions
- Get the current local
JsStringintershard memory for this shard. - Get the data that another shard’s code instance has written to its intershard memory segment.
- Overwrite the current shard’s intershard memory segment with new contents. Maximum allowed length of
INTER_SHARD_MEMORY_SIZE_LIMITUTF-16 units.