ModernUO/Distribution/Data/packets/incoming/mahjong.json
Kamron Batman 0d3dc75330
feat: Expand packet documentation with enums, bitfields, and detailed formats
- Add 42 new packet JSON definitions (assistant, book, chat, gump, house, etc.)
- Convert inline enum/bitflag descriptions to structured enum arrays
- Add planeFormat section for 0xD8 house customization packet
- Add Plane Format rendering in HTML template
- Standardize field descriptions and remove inline value lists
- Add comprehensive gump layout command documentation
- Document boat, mahjong, party, secure trade, and weapon ability packets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 15:28:05 -08:00

56 lines
No EOL
3.1 KiB
JSON

{
"category": "Mahjong",
"packets": [
{
"id": "0xDA",
"name": "Mahjong Command",
"description": "Client sends Mahjong game commands. Various subcommands control game actions like moving tiles, rolling dice, and managing players.",
"direction": "incoming",
"isDynamic": true,
"size": "7+",
"fields": [
{
"name": "Packet ID",
"type": "byte",
"size": 1,
"value": "0xDA",
"description": "Packet identifier"
},
{
"name": "Length",
"type": "ushort",
"size": 2,
"description": "Packet length"
},
{
"name": "Game Serial",
"type": "uint",
"size": 4,
"description": "Serial of the Mahjong game"
},
{
"name": "Unknown",
"type": "byte",
"size": 1,
"description": "Unknown byte"
},
{
"name": "Command",
"type": "byte",
"size": 1,
"description": "Subcommand: 0x06=Exit, 0x0A=GivePoints, 0x0B=RollDice, 0x0C=BuildWalls, 0x0D=ResetScores, 0x0F=AssignDealer, 0x10=OpenSeat, 0x11=ChangeOption, 0x15=MoveWallBreak, 0x16=TogglePublicHand, 0x17=MoveTile, 0x18=MoveDealerIndicator"
},
{
"name": "Data",
"type": "byte[]",
"size": "var",
"description": "Command-specific data (varies by subcommand)"
}
],
"source": {
"file": "Projects/UOContent/Items/Games/Mahjong/MahjongPackets.cs",
"line": 64
}
}
]
}