- 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>
61 lines
2.4 KiB
JSON
61 lines
2.4 KiB
JSON
{
|
|
"category": "Combat",
|
|
"packets": [
|
|
{
|
|
"id": "0x2F",
|
|
"name": "Swing",
|
|
"description": "Notifies client of a melee swing between two mobiles.",
|
|
"direction": "outgoing",
|
|
"isDynamic": false,
|
|
"size": 10,
|
|
"fields": [
|
|
{ "name": "packetId", "type": "byte", "size": 1, "value": "0x2F", "description": "Packet identifier" },
|
|
{ "name": "unknown", "type": "byte", "size": 1, "value": "0x00", "description": "Unknown" },
|
|
{ "name": "attackerSerial", "type": "uint", "size": 4, "description": "Serial of attacker" },
|
|
{ "name": "defenderSerial", "type": "uint", "size": 4, "description": "Serial of defender" }
|
|
],
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingCombatPackets.cs",
|
|
"line": 23
|
|
}
|
|
},
|
|
{
|
|
"id": "0x72",
|
|
"name": "Set War Mode",
|
|
"description": "Sets the client's war/peace mode state.",
|
|
"direction": "outgoing",
|
|
"isDynamic": false,
|
|
"size": 5,
|
|
"fields": [
|
|
{ "name": "packetId", "type": "byte", "size": 1, "value": "0x72", "description": "Packet identifier" },
|
|
{ "name": "warmode", "type": "bool", "size": 1, "description": "True = war mode, False = peace mode" },
|
|
{ "name": "unknown1", "type": "byte", "size": 1, "value": "0x00", "description": "Unknown" },
|
|
{ "name": "unknown2", "type": "byte", "size": 1, "value": "0x32", "description": "Unknown (50)" },
|
|
{ "name": "unknown3", "type": "byte", "size": 1, "value": "0x00", "description": "Unknown" }
|
|
],
|
|
"related": [
|
|
{ "id": "0x72", "relationship": "request", "note": "Set War Mode from client" }
|
|
],
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingCombatPackets.cs",
|
|
"line": 40
|
|
}
|
|
},
|
|
{
|
|
"id": "0xAA",
|
|
"name": "Change Combatant",
|
|
"description": "Notifies client of current combat target.",
|
|
"direction": "outgoing",
|
|
"isDynamic": false,
|
|
"size": 5,
|
|
"fields": [
|
|
{ "name": "packetId", "type": "byte", "size": 1, "value": "0xAA", "description": "Packet identifier" },
|
|
{ "name": "combatantSerial", "type": "uint", "size": 4, "description": "Serial of current combatant (0 = none)" }
|
|
],
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingCombatPackets.cs",
|
|
"line": 43
|
|
}
|
|
}
|
|
]
|
|
}
|