优化ability转发

This commit is contained in:
huangxiaolei
2022-12-05 00:20:25 +08:00
parent b5b7a2b47a
commit 447aeeb672
15 changed files with 267 additions and 218 deletions

View File

@@ -135,6 +135,7 @@ func (w *World) CreateScene(sceneId uint32) *Scene {
gameTime: 18 * 60,
attackQueue: alg.NewRAQueue[*Attack](1000),
createTime: time.Now().UnixMilli(),
meeoIndex: 0,
}
w.sceneMap[sceneId] = scene
return scene
@@ -169,6 +170,7 @@ type Scene struct {
gameTime uint32
attackQueue *alg.RAQueue[*Attack]
createTime int64
meeoIndex uint32
}
type AvatarEntity struct {