feat(fight): 实现玩家对战邀请功能及PVP模式处理

This commit is contained in:
1
2025-08-27 05:10:10 +00:00
parent 17f253efcb
commit a2fe2515d2
4 changed files with 69 additions and 1 deletions

View File

@@ -68,3 +68,11 @@ func (h Controller) OnReadyToFight(data *fight.ReadyToFightInboundInfo, c *entit
c.SendPack(t1.Pack(&rett))
return nil, -1
}
/**
* 接收战斗或者取消战斗的包
*/
func (h Controller) OnPlayerHandleFightInvite(data *fight.HandleFightInviteInboundInfo, c *entity.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
return nil, -1
}