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.

Screeps documentation

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.