Skip to main content

EntitySerializationMessage

A static class in Root.Township, Alta.Networking.

Network message that carries an entity's full serialized data (its EntitySerializer).

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger; warns when the entity is missing on read.

Methods​

MemberWhat it is
static void Serialize(Connection connection, Stream stream)Writing: serializes and writes the entity's full data. Reading: reads it in if the sender has authority, otherwise logs an error.
static void Set(NetworkEntity entity)Sets the entity the message is for.