|
R-Type 0.1
|
Payload of a CreateEntity message, 16 bytes, sent by the server to spawn an entity on a client. More...
#include <Protocol/EntityPayload.hpp>
Public Attributes | |
| be32 | serverTick |
| Server tick at sending time. | |
| be32 | networkId |
| Identifier of the new entity. | |
| be16 | entityType |
| Archetype id of the entity blueprint. | |
| be16 | positionX |
| Horizontal position, fixed point encoded. | |
| be16 | positionY |
| Vertical position, fixed point encoded. | |
| be16 | rotation |
| Rotation, fraction of a full turn. | |
Payload of a CreateEntity message, 16 bytes, sent by the server to spawn an entity on a client.
| Offset | Size | Field | Description |
|---|---|---|---|
| 0 | 4 | serverTick | Server tick at sending time. |
| 4 | 4 | networkId | Entity id, never 0. |
| 8 | 2 | entityType | Archetype id of the entity blueprint. |
| 10 | 2 | positionX | Encoded with encodePosition(). |
| 12 | 2 | positionY | Encoded with encodePosition(). |
| 14 | 2 | rotation | Encoded with encodeRotation(). |