Template:CMSG Header: Difference between revisions
Jump to navigation
Jump to search
m (Attempt to solve opcode always being visible) |
m (Attempt to solve opcode always being visible) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:opcode|{{{opcode}}}}}{| class="wikitable" | <includeonly>{{#vardefine:opcode|{{{opcode|}}}}}{| class="wikitable" | ||
|+ CMSG Header | |+ CMSG Header | ||
! Offset | ! Offset | ||
Line 9: | Line 9: | ||
| 0x0 || 2 / Big || uint16 || size || Size of the packet including the opcode field. | | 0x0 || 2 / Big || uint16 || size || Size of the packet including the opcode field. | ||
|- | |- | ||
| 0x2 || 4 / Little || uint32 || opcode || [[Opcodes|Opcode]] for the packet.<br>Determines the structure of the body. | | 0x2 || 4 / Little || uint32 || opcode || [[Opcodes|Opcode]] for the packet.<br>Determines the structure of the body.{{#if:{{#var:opcode}}|<br>Always {{{opcode}}}.}} | ||
|- | |- | ||
|}</includeonly> | |}</includeonly> |
Revision as of 21:05, 23 May 2021
Add a table with the header for CMSG World Packets.
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 2 / Big | uint16 | size | Size of the packet including the opcode field. |
0x2 | 4 / Little | uint32 | opcode | Opcode for the packet. Determines the structure of the body. |
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 2 / Big | uint16 | size | Size of the packet including the opcode field. |
0x2 | 4 / Little | uint32 | opcode | Opcode for the packet. Determines the structure of the body. Always 0x20. |