DestroyMessage
A static class in Root.Township, Alta.Networking.
The network message that tells clients to destroy or unload an entity. Static fields hold one message's data between Set and Serialize.
- Listed in Networking and servers
Fields
4 private and internal fields
Methods
| Member | What it is |
|---|---|
static void Serialize(Connection connection, Stream stream) | Writes or reads the message. Client: destroys or unloads the entity (waiting for it to spawn if needed), unless it was respawned after this despawn. |
static void Set(NetworkEntity entity, bool isUnload, bool isAllowingWait) | Server: fills the message for an entity, with its despawn spawn index. |