完善 server-rs DDD 重构计划与骨架

This commit is contained in:
Codex
2026-04-29 11:51:30 +08:00
parent 39200ea9cc
commit aa2e9b36d7
98 changed files with 1261 additions and 11 deletions

View File

@@ -0,0 +1,3 @@
//! NPC 应用编排过渡落位。
//!
//! 这里只返回关系变化、推荐动作和跨上下文事件,不直接写战斗表。

View File

@@ -0,0 +1,3 @@
//! NPC 写入命令过渡落位。
//!
//! 用于表达聊天、帮助、送礼、招募、开战和切磋等输入。

View File

@@ -0,0 +1,4 @@
//! NPC 领域模型过渡落位。
//!
//! 后续迁移 NPC 状态、关系、好感、招募和互动规则时,只保留社交领域变化;
//! 战斗初始化和跨表事务由外层编排。

View File

@@ -0,0 +1,3 @@
//! NPC 领域错误过渡落位。
//!
//! 错误只表达互动规则失败,例如状态不允许、好感不足或目标非法。

View File

@@ -0,0 +1,3 @@
//! NPC 领域事件过渡落位。
//!
//! 用于表达好感变化、关系变化、NPC 被招募和战斗请求产生等事实。

View File

@@ -1,3 +1,9 @@
mod application;
mod commands;
mod domain;
mod errors;
mod events;
use std::{error::Error, fmt};
use serde::{Deserialize, Serialize};