参伍提供
- 确定性时间,与画面帧率无关
- 命令输入与因果事件
- 实体与领域记录注册表
- 由插件拥有、在边界中结算的类型化状态
集成模式
01游戏 · API 已可用
canwu.enqueue_command(time, priority, request)?;
canwu.advance_canonical(SimDuration::hours(1))?;
let record = canwu.typed_domain_record(&game_state_ref); // Option<&DomainRecord>
let events = canwu.events();02研究 · 派生分支与重放已可用
let saved = canwu.snapshot_json()?;
let branch = canwu.fork();
let journal = canwu.replay_journal();
let replayed = Canwu::replay_from_journal(plugins, &journal)?;
assert_eq!(replayed.checkpoint_hash(), canwu.checkpoint_hash());03智能体 · 按角色视角的智能体循环已可用
let view = canwu.viewer_for_actor(actor)?.query_knowledge(&query)?;
canwu.enqueue_command(time, priority, request)?;
canwu.advance_canonical(duration)?;
let changes = canwu.viewer_for_actor(actor)?.visible_changes_since(time);04教育 · API 已可用
entities() → stable identities
domain projection → timeline or map state
events() → causal history
fork() → what-if branch