Module 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.

Screeps documentation

Functions§

get_local
Get the current local JsString intershard memory for this shard.
get_remote
Get the data that another shard’s code instance has written to its intershard memory segment.
set_local
Overwrite the current shard’s intershard memory segment with new contents. Maximum allowed length of INTER_SHARD_MEMORY_SIZE_LIMIT UTF-16 units.