跳到正文
linqingan.com
LearnBuildSolveVerifyAPITools
ENOpen Doctor
知识库/文章标签/RawMemory

TAG

RawMemory

当前共有 2 篇文章使用这个长期主题标签。

发布于 2026年8月17日/10 分钟/Screeps 进阶开发

Screeps RawMemory Foreign Segment 怎么用:公开 Segment、下一 Tick 读取与轮询调度

使用 RawMemory.setPublicSegments、setDefaultPublicSegment 和 setActiveForeignSegment 安全发布与读取其他玩家的公开 Segment:处理下一 tick 时序、一次一个 Foreign Segment、覆盖式配置、版本校验、轮询调度和不可信 JSON。

Screeps进阶开发RawMemoryForeign SegmentMemory
发布于 2026年7月18日/更新于 2026年7月22日/7 分钟/Screeps 进阶开发

RawMemory segments 怎么跨 tick 安全读取和写回

解释 RawMemory.setActiveSegments 的下一 tick 时序、0–99 ID 与同时激活上限,并提供空内容、损坏 JSON、版本字段和安全写回的完整示例。

Screeps进阶开发RawMemoryMemorySegments
linqingan.com

Making Screeps easier to learn, build and master.

AboutChangelogGitHubContact

Build. Learn. Solve. Repeat.