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:
1 parent
cea91450f2
commit
ba3264a943
6 files changed
+89
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user