refactor(effect): 重构效果节点生命周期管理及属主控制逻辑

- 将Alive()方法改为Alive(bool)可设置方法,替代NotALive()
- 将GetOwner()改为Owner(bool)可设置方法
- 修复效果初始化时默认激活状态
- 优化效果叠层和取消逻辑
- 修正超时处理日志输出
This commit is contained in:
1
2025-11-03 14:46:33 +00:00
parent 1ebf500121
commit 35935549bd
13 changed files with 77 additions and 125 deletions

View File

@@ -3,16 +3,16 @@ module blazing/logic
go 1.19
require (
github.com/antlabs/timer v0.1.4
github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df
github.com/brunoga/deep v1.2.5
github.com/butoften/array v1.0.9
github.com/creasty/defaults v1.8.0
github.com/gobwas/ws v1.4.0
github.com/gogf/gf/contrib/nosql/redis/v2 v2.6.3
github.com/jinzhu/copier v0.4.0
github.com/lunixbochs/struc v0.0.0-20241101090106-8d528fa2c543
github.com/panjf2000/ants/v2 v2.11.3
github.com/panjf2000/gnet v1.6.7
github.com/pointernil/bitset32 v0.0.1
github.com/shopspring/decimal v1.4.0
github.com/tnnmigga/enum v1.0.2
golang.org/x/sync v0.11.0
@@ -20,7 +20,8 @@ require (
require (
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/bruceshao/lockfree v1.1.2 // indirect
github.com/antlabs/stl v0.0.2 // indirect
github.com/bits-and-blooms/bitset v1.5.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/clbanning/mxj/v2 v2.7.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect