INetworkSceneInternal
An interface in Root.Township, Alta.Networking.
Internal side of the network scene used by the networking code: connections, the scene serializer and forced entity registration. NetworkScene implements it; get it from NetworkSceneManager.CurrentInternal.
- Listed in Networking and servers
- Inherits or implements
INetworkScene,IEntityManager - Derived types
NetworkScene,LocalNetworkScene
Properties
| Member | What it is |
|---|---|
HashSet<Connection> Connections { get; } | All current connections. |
Transform PlayerFolder { get; } | The Players child transform that player objects go under. |
SceneSerializer SceneSerializer { get; } | Serializes and sends entity updates each interval. |
Methods
| Member | What it is |
|---|---|
void AddConnection(Connection connection) | Adds a connection and removes it again when it disconnects. |
uint ForceRegisterEntity(NetworkEntity entity) | Registers an entity with the scene, with a new identifier or a given one. |
void ForceRegisterEntity(NetworkEntity entity, uint identifier) | Registers an entity with the scene, with a new identifier or a given one. |
void HandleSync(uint embeddedIndex, uint identifier, uint[] embedded) | Applies a scene entity sync message (probably on the joining client). The last embedded entity marks the scene sync finished. |
Task Initialize(ISocket socket, Action<string> statusCallback) | Starts the scene on a socket, reporting status through the callback. |
Used in
Members of other types that take, return or hold a INetworkSceneInternal: