feat(fight): 重构PVP邀请系统,使用PVPinfo结构体替代原有map存储方式

This commit is contained in:
1
2025-09-21 07:22:42 +00:00
parent f19c901f42
commit 30453045c7
4 changed files with 60 additions and 54 deletions

View File

@@ -84,7 +84,7 @@ func (h Controller) OnPlayerHandleFightInvite(data *fight.HandleFightInviteInbou
// 邀请其他人进行战斗
func (h Controller) OnPlayerInviteOtherFight(data *fight.InviteToFightInboundInfo, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
c.InvitePlayerToBattle(data.UserID, info.EnumBattleMode(data.Mode))
c.InvitePlayerToBattle(&info.PVPinfo{data.UserID, data.Mode})
return nil, 0
}