- Create JSON-based packet documentation for 145 packets (66 incoming, 79 outgoing) - Add HTML template with search, filtering, and navigation - Support enum/bitfield field display with values and descriptions - Support packet variants for version-specific structures - Include 0xBF extended command subpackets documentation - Add PowerShell build script to generate final HTML 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
52 lines
2 KiB
JSON
52 lines
2 KiB
JSON
{
|
|
"category": "Damage",
|
|
"packets": [
|
|
{
|
|
"id": "0x0B",
|
|
"name": "Damage",
|
|
"description": "Shows damage dealt to a mobile (client 5.0.0a+).",
|
|
"direction": "outgoing",
|
|
"isDynamic": false,
|
|
"size": 7,
|
|
"fields": [
|
|
{ "name": "packetId", "type": "byte", "size": 1, "value": "0x0B", "description": "Packet identifier" },
|
|
{ "name": "serial", "type": "uint", "size": 4, "description": "Serial of damaged mobile" },
|
|
{ "name": "damage", "type": "ushort", "size": 2, "description": "Damage amount (clamped 0-65535)" }
|
|
],
|
|
"clientVersion": {
|
|
"min": "5.0.0a",
|
|
"feature": "DamagePacket"
|
|
},
|
|
"notes": "For pre-5.0.0a clients, use 0xBF/0x22 instead.",
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingDamagePackets.cs",
|
|
"line": 34
|
|
}
|
|
},
|
|
{
|
|
"id": "0xBF/0x22",
|
|
"name": "Damage (Old)",
|
|
"description": "Shows damage dealt to a mobile (pre-5.0.0a clients).",
|
|
"direction": "outgoing",
|
|
"isDynamic": false,
|
|
"size": 11,
|
|
"fields": [
|
|
{ "name": "packetId", "type": "byte", "size": 1, "value": "0xBF", "description": "Packet identifier" },
|
|
{ "name": "length", "type": "ushort", "size": 2, "value": "11", "description": "Packet length" },
|
|
{ "name": "subCommand", "type": "ushort", "size": 2, "value": "0x22", "description": "Subcommand (Damage)" },
|
|
{ "name": "unknown", "type": "byte", "size": 1, "value": "0x01", "description": "Unknown (always 1)" },
|
|
{ "name": "serial", "type": "uint", "size": 4, "description": "Serial of damaged mobile" },
|
|
{ "name": "damage", "type": "byte", "size": 1, "description": "Damage amount (clamped 0-255)" }
|
|
],
|
|
"clientVersion": {
|
|
"max": "5.0.0a",
|
|
"notes": "For clients before DamagePacket feature"
|
|
},
|
|
"notes": "Damage is capped at 255 for old clients.",
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingDamagePackets.cs",
|
|
"line": 40
|
|
}
|
|
}
|
|
]
|
|
}
|