Class WorldPacket [-] [+]
A packet used to pass messages between the server and a client.
Each packet has an opcode that determines the type of message being sent, e.g. if a CMSG_LOGOUT_REQUEST packet is sent to the server, the client has sent a message that its Player wants to logout.
The packet can contain further data, the format of which depends on the opcode.
Inherits all methods from: none
Methods
| GetOpcode | Returns the opcode of the WorldPacket. |
| GetSize | Returns the size of the WorldPacket. |
| ReadByte | Reads and returns a signed 8-bit integer value from the WorldPacket. |
| ReadDouble | Reads and returns a double-precision floating-point value from the WorldPacket. |
| ReadFloat | Reads and returns a single-precision floating-point value from the WorldPacket. |
| ReadGUID | Reads and returns an unsigned 64-bit integer value from the WorldPacket. |
| ReadLong | Reads and returns a signed 32-bit integer value from the WorldPacket. |
| ReadPackedGUID | Reads a packed GUID from the WorldPacket and returns it as a full 64-bit integer. The packed data size varies (2-9 bytes), but always unpacks to a complete 64-bit GUID. |
| ReadShort | Reads and returns a signed 16-bit integer value from the WorldPacket. |
| ReadString | Reads and returns a string value from the WorldPacket. |
| ReadUByte | Reads and returns an unsigned 8-bit integer value from the WorldPacket. |
| ReadULong | Reads and returns an unsigned 32-bit integer value from the WorldPacket. |
| ReadUShort | Reads and returns an unsigned 16-bit integer value from the WorldPacket. |
| SetOpcode | Sets the opcode of the WorldPacket to the specified opcode. |
| WriteByte | Writes a signed 8-bit integer value to the WorldPacket. |
| WriteDouble | Writes a 64-bit floating-point value to the WorldPacket. |
| WriteFloat | Writes a 32-bit floating-point value to the WorldPacket. |
| WriteGUID | Writes an unsigned 64-bit integer value to the WorldPacket. |
| WriteLong | Writes a signed 32-bit integer value to the WorldPacket. |
| WritePackedGUID | Writes an ObjectGuid as packed GUID format to the WorldPacket. |
| WriteShort | Writes a signed 16-bit integer value to the WorldPacket. |
| WriteString | Writes a string to the WorldPacket. |
| WriteUByte | Writes an unsigned 8-bit integer value to the WorldPacket. |
| WriteULong | Writes an unsigned 32-bit integer value to the WorldPacket. |
| WriteUShort | Writes an unsigned 16-bit integer value to the WorldPacket. |