feat(utils): 重构 OrderedMap 为 OrderMap,支持排序和非阻塞遍历

- 将原有的 `OrderedMap` 替换为 `OrderMap`,基于 `map` 和 `slice` 实现,提升性能并简化逻辑
- 支持自定义 key 排序规则,若未提供则按插入顺序维护
- 提供 `Set`、`Get`、`Delete`、`Keys`、`Values` 等基本操作,均并发安全
- 引入非阻塞遍历机制(`Iter`、`Iter
This commit is contained in:
2025-10-22 21:30:05 +08:00
parent ae88790ed3
commit 83fb06a229
7 changed files with 258 additions and 208 deletions

View File

@@ -16,8 +16,10 @@ func (e *EffectNode) Turn_End(ctx input.Ctx) {
if e.duration == 0 { // 保留 (负数表示永久)
e.NotALive()
} else {
e.duration--
}
e.duration--
}
func (e *EffectNode) OnDefeat(*input.Input, *info.SkillEntity) bool {