Skip to main content

EntitySyncMessage

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

Network message that syncs a scene entity's identifier, embedded id and, for prefabs, the identifiers of its embedded entities. On read the scene manager matches them up.

Fields​

5 private and internal fields
MemberWhat it is
private static uint embeddedThe entity's embedded id.
private static uint embeddedCountNumber of embedded entities on the prefab (sent in 8 bits).
private static uint identifierThe entity's identifier.
private static bool isPrefabWhether the entity comes from a prefab, so embedded ids follow.
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
static void Serialize(Connection connection, Stream stream)Writes or reads the ids; on read passes them to the network scene manager's HandleSync.
static void Set(NetworkEntity entity)Fills the message from an entity, copying embedded entity ids into TemporaryUint256.array.