[match] fix 2025 game invites

This commit is contained in:
Devin Zuczek
2026-08-26 17:37:09 -04:00
parent e2ced3e797
commit 062ed452a5
5 changed files with 540 additions and 23 deletions
+22
View File
@@ -64,6 +64,27 @@ export enum MessageType {
VirtualRoomNotification = 100008,
}
/**
* What a v2 game invite (`MessageType.GameInviteV2`) is ASKING FOR — the `InviteMode` in
* its `Data` envelope. It's the intent behind the invite, not the room being invited into:
* the same instance is named whether you're pulling a party along or asking one player to
* come play.
*
* The values are sparse and grouped: 04 are the party-management modes, 20+ the invite
* ones. A plain "join me" is {@link PlayTogether}; {@link InviteParty} is the other
* reading of it, and the two have not been told apart on the wire yet.
*/
export enum InviteMode {
None = 0,
LeaveParty = 1,
InviteParty = 2,
PartyAutoFollow = 3,
EveryoneAutoFollow = 4,
InviteOnlineFriends = 20,
FullInstanceReinvite = 21,
PlayTogether = 22,
}
/**
* A room's (or image's) visibility, matching the client's `RoomAccessibility`. The
* client declares the enum without explicit values, so these are its ordinals — and
@@ -140,6 +161,7 @@ export enum MatchmakingErrorCode {
MetaJuniorAccountRestriction = 83,
NotExclusivelyLoggedIn = 84,
AccountDoesNotExist = 85,
RoomInstanceBlockedByMatchmakingPolicy = 86,
}
/**