server: 0006-feature-messages

TICKET-170: Capability / Appearance / Dialogue as real messages (0x40-0x42), sender stamped from the connection, appearance replayed in the join snapshot.

Replayed from Tools/YGOLegacy/patches/0006-feature-messages.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:56 -07:00
1 parent d84fab84ed
commit 00a715f181
7 files changed
+218 -2

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ public:
static void DisconnectPlayer(DuelPlayer* dp);
static void HandleCTOSPacket(DuelPlayer* dp, unsigned char* data, size_t len);
static size_t CreateChatPacket(unsigned char* src, int src_size, unsigned char* dst, uint16_t dst_player_type);
static size_t CreateStampedPacket(unsigned char* src, int src_size, unsigned char* dst, uint16_t dst_player_type); // YGOL feature messages
static inline bool ShouldHideFacedownCode(uint8_t position) {
return (position & POS_FACEDOWN) != 0 && (position & POS_REVEAL) == 0;
}