23 lines
626 B
Rust
23 lines
626 B
Rust
//! runtime story 领域事件。
|
|
//!
|
|
//! 用于表达剧情快照变化、战斗表现变化和物品/成长待同步等事实。
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
|
pub enum RuntimeStoryDomainEvent {
|
|
SnapshotChanged {
|
|
runtime_session_id: String,
|
|
story_session_id: Option<String>,
|
|
occurred_at_micros: i64,
|
|
},
|
|
BattlePresentationChanged {
|
|
runtime_session_id: String,
|
|
battle_state_id: Option<String>,
|
|
occurred_at_micros: i64,
|
|
},
|
|
CrossDomainSyncPending {
|
|
runtime_session_id: String,
|
|
reason: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
}
|