server: 0013-seat-state

Seat state (0x59): a seated duelist says what it is doing (picking a deck); stored per seat, replayed in the join snapshot, cleared on leave / move / start. Capability bit 0x20, protocol 3.

Replayed from Tools/YGOLegacy/patches/0013-seat-state.patch in the Unity repo.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Fable 5.1 committed 2026-10-14 20:58:58 -07:00
1 parent cea91450f2
commit ba3264a943
6 files changed
+89 -4

No files matched your search

+9
View File
@@ -461,6 +461,15 @@ void NetServer::HandleCTOSPacket(DuelPlayer* dp, unsigned char* data, size_t len
duel_mode->RestartOpen(dp, pdata, len - 1);
break;
}
// YGOL seat state: exact size or dropped
case CTOS_SEAT_STATE: {
if(!dp->game)
return;
if (len != 1 + sizeof(CTOS_SeatState))
return;
duel_mode->SeatState(dp, pdata, len - 1);
break;
}
case CTOS_UPDATE_DECK: {
if(!dp->game)
return;