Module screeps::inter_shard_memory
source · Available on crate feature
mmo
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
JsString
intershard 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_LIMIT
UTF-16 units.