Template:SMSG Header: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{| class="wikitable" |+ SMSG Header ! Offset ! Size / Endianness ! Type ! Name ! Description |- | 0x0 || 2 / Big || uint16 || size || Size of the packet including the opcode f...") |
(Add opcode and size parameters) |
||
Line 1: | Line 1: | ||
{| class="wikitable" | <includeonly>{{#vardefine:opcode|{{{opcode|}}}}}{{#vardefine:size|{{{size|}}}}}{| class="wikitable" | ||
|+ SMSG Header | |+ SMSG Header | ||
! Offset | ! Offset | ||
Line 7: | Line 7: | ||
! Description | ! Description | ||
|- | |- | ||
| 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.{{#if:{{#var:size}}|<br>Always {{{size}}}.}} | ||
|- | |- | ||
| 0x2 || 2 / Little || uint16 || opcode || [[Opcodes|Opcode]] for the packet.<br>Determines the structure of the body. | | 0x2 || 2 / Little || uint16 || opcode || [[Opcodes|Opcode]] for the packet.<br>Determines the structure of the body.{{#if:{{#var:opcode}}|<br>Always {{{opcode}}}.}} | ||
|- | |- | ||
|} | |}</includeonly> | ||
<noinclude> | |||
Add a table with the header for SMSG [[World Packet]]s. | |||
No parameters, for the [[World Packet]] page. | |||
<pre>{{SMSG_Header}}</pre> | |||
{{SMSG_Header}} | |||
With the opcode parameter, for individual packet pages. | |||
<pre>{{SMSG_Header|opcode=0x20}}</pre> | |||
{{SMSG_Header|opcode=0x20}} | |||
Or with the size parameter, for individual packet pages. | |||
<pre>{{SMSG_Header|size=100}}</pre> | |||
{{SMSG_Header|size=100}} | |||
</noinclude> |
Latest revision as of 16:28, 24 May 2021
Add a table with the header for SMSG World Packets.
No parameters, for the World Packet page.
{{SMSG_Header}}
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 2 / Big | uint16 | size | Size of the packet including the opcode field. |
0x2 | 2 / Little | uint16 | opcode | Opcode for the packet. Determines the structure of the body. |
With the opcode parameter, for individual packet pages.
{{SMSG_Header|opcode=0x20}}
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 2 / Big | uint16 | size | Size of the packet including the opcode field. |
0x2 | 2 / Little | uint16 | opcode | Opcode for the packet. Determines the structure of the body. Always 0x20. |
Or with the size parameter, for individual packet pages.
{{SMSG_Header|size=100}}
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 2 / Big | uint16 | size | Size of the packet including the opcode field. Always 100. |
0x2 | 2 / Little | uint16 | opcode | Opcode for the packet. Determines the structure of the body. |