feat(fight): 实现玩家间战斗邀请与处理功能

新增战斗邀请与处理逻辑,包括邀请发送、邀请接受/拒绝流程。
添加战斗模式支持(1v1 和 6v6)及相关数据结构定义。
优化玩家战斗准备逻辑,完善战斗初始化流程。
修复玩家离线保存数据时的空指针问题。
调整战斗相关枚举类型,统一管理战斗模式。
完善邀请战斗消息结构体及通信协议。
```
This commit is contained in:
2025-09-20 00:17:29 +08:00
parent d9a98515f1
commit 9c25ccc214
13 changed files with 635 additions and 331 deletions

View File

@@ -88,7 +88,7 @@ func (h *Controller) MapList(data *maps.ListMapPlayerInboundInfo, c *player.Play
space.GetSpace(c.Info.MapID).Range(func(userID uint32, player common.PlayerI) bool {
result1 := maps.NewOutInfo()
copier.Copy(result1, player)
copier.Copy(result1, player.GetInfo())
result.Player = append(result.Player, *result1)
return true
})