Core: ygol_query_tag_cards(pduel, playerid, out) reads the waiting tag partner's tag_list_hand / tag_list_extra (bit 31 = face-up, like MSG_TAG_SWAP) and tag_list_main sorted ascending; returns the byte length, 0 when not a tag duel. Read only. Server: STOC_TAG_PARTNER_CARDS 0x5F = u8 side + those bytes, no stamp, to that side's two seats only (never the other team, never an observer): after start_duel, after every MSG_TAG_SWAP, and in a seated duelist's field resync. FEATURE_TAG_PARTNER_CARDS 0x2000 advertised by single_duel and tag_duel; FEATURE_PROTOCOL 8 -> 9. 0x800 / 0x1000 stay reserved for proposals 44 / 45. Binding: StocMessage.TagPartnerCards, FeatureFlags.TagPartnerCards, the TagPartnerCards record + StocCodecs.TagPartnerCards, EngineApi.ygol_query_tag_cards, Capability.ProtocolVersion 9, tests. Contract rows, CHANGELOG v1.2.0, the probe's tag partner cards room, the export gates 334 / 855 / 849 -> 335 / 856 / 850. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
85 lines
2.0 KiB
C#
85 lines
2.0 KiB
C#
namespace YGOLegacy.Protocol.Contracts
|
|
{
|
|
public enum CtosMessage
|
|
{
|
|
Response = 0x1,
|
|
UpdateDeck = 0x2,
|
|
HandResult = 0x3,
|
|
TpResult = 0x4,
|
|
PlayerInfo = 0x10,
|
|
CreateGame = 0x11,
|
|
JoinGame = 0x12,
|
|
LeaveGame = 0x13,
|
|
Surrender = 0x14,
|
|
TimeConfirm = 0x15,
|
|
Chat = 0x16,
|
|
ExternalAddress = 0x17,
|
|
HsToDuelist = 0x20,
|
|
HsToObserver = 0x21,
|
|
HsReady = 0x22,
|
|
HsNotReady = 0x23,
|
|
HsKick = 0x24,
|
|
HsStart = 0x25,
|
|
RequestField = 0x30,
|
|
Capability = 0x40,
|
|
Appearance = 0x41,
|
|
Dialogue = 0x42,
|
|
SeatPlan = 0x50,
|
|
SeatRequest = 0x51,
|
|
SeatSwap = 0x52,
|
|
SeatMove = 0x53,
|
|
RestartPrepare = 0x54,
|
|
RestartAck = 0x55,
|
|
RestartControl = 0x56,
|
|
SeatResume = 0x57,
|
|
RestartOpen = 0x58,
|
|
SeatState = 0x59,
|
|
Profile = 0x5D,
|
|
AttackPreview = 0x5E
|
|
}
|
|
|
|
public enum StocMessage
|
|
{
|
|
GameMsg = 0x1,
|
|
ErrorMsg = 0x2,
|
|
SelectHand = 0x3,
|
|
SelectTp = 0x4,
|
|
HandResult = 0x5,
|
|
TpResult = 0x6,
|
|
ChangeSide = 0x7,
|
|
WaitingSide = 0x8,
|
|
DeckCount = 0x9,
|
|
CreateGame = 0x11,
|
|
JoinGame = 0x12,
|
|
TypeChange = 0x13,
|
|
LeaveGame = 0x14,
|
|
DuelStart = 0x15,
|
|
DuelEnd = 0x16,
|
|
Replay = 0x17,
|
|
TimeLimit = 0x18,
|
|
Chat = 0x19,
|
|
HsPlayerEnter = 0x20,
|
|
HsPlayerChange = 0x21,
|
|
HsWatchChange = 0x22,
|
|
TeammateSurrender = 0x23,
|
|
FieldFinish = 0x30,
|
|
SrvproRoomList = 0x31,
|
|
Capability = 0x40,
|
|
Appearance = 0x41,
|
|
Dialogue = 0x42,
|
|
SetupPairs = 0x43,
|
|
SeatPlan = 0x50,
|
|
RoomRestarting = 0x54,
|
|
RestartStatus = 0x56,
|
|
SeatResumeResult = 0x57,
|
|
RestartOpen = 0x58,
|
|
SeatState = 0x59,
|
|
MatchOver = 0x5A,
|
|
CoinToss = 0x5B,
|
|
DeckList = 0x5C,
|
|
Profile = 0x5D,
|
|
AttackPreview = 0x5E,
|
|
TagPartnerCards = 0x5F
|
|
}
|
|
}
|