Files
Genarrative/server-rs/crates/module-runtime-story/README.md

695 B

module-runtime-story

module-runtime-story 承接 RPG runtime story 的纯领域规则、应用用例、事件和错误模型,不依赖 HTTP / AppState / SpacetimeDB。

当前已经迁入的历史快照态纯逻辑会继续收口为 session scoped 新主链:

  1. action 结算结果结构。
  2. action response 组装参数结构。
  3. NPC 委托上下文结构。
  4. functionId / 队伍上限常量。
  5. 少量只依赖 serde_json::Valueshared-contracts 的纯 helper。

后续 WP-RS 继续按 battle / forge / NPC / quest / presentation 的顺序,把旧 /api/runtime/story/* 写侧能力迁到 session scoped 新接口,并删除运行代码中的旧入口命名。