This commit is contained in:
昔念
2026-04-25 23:05:41 +08:00
parent 415315c288
commit 4906197c77
18 changed files with 1009 additions and 31 deletions

View File

@@ -24,6 +24,7 @@ type PVPMatchJoinPayload struct {
IsVip uint32 `json:"isVip"`
IsDebug uint8 `json:"isDebug"`
CatchTimes []uint32 `json:"catchTimes"`
TianxuanPetIDs []uint32 `json:"tianxuanPetIds"`
}
type pvpMatchQueueKey struct {
@@ -63,6 +64,7 @@ func (m *pvpMatchCoordinator) JoinOrUpdate(payload PVPMatchJoinPayload) error {
IsDebug: payload.IsDebug,
JoinedAtUnix: now.Unix(),
CatchTimes: append([]uint32(nil), payload.CatchTimes...),
TianxuanPetIDs: append([]uint32(nil), payload.TianxuanPetIDs...),
}
var match *pvpwire.MatchFoundPayload