Namespace AltV.Net.EntitySync
Classes
AltEntitySync
Client
A client is a connected peer that authenticated itself via a token. In most cases the client contains a IPlayer object and gets the position and exists status out of this.
ClientDataSnapshot
This contains all snapshots of entities the client visited, and a buffer to use when comparing snapshots to reduce allocations
ClientRepository
ClientThreadRepository
DataSnapshot
Saves the state of the entity data and player received data
Entity
EntityDataSnapshot
Saves the state of the entity data
EntityRepository
EntitySyncServer
The sync server creates the threads, the client repository and entity repositories. It transmits the streamer callbacks to the network layer. It will also transfer callbacks from network layer to streamer, for e.g. updating entity position when net owner is implemented.
EntityThread
The entity thread checks in a endless loop if entities should be created or removed for all clients. And it delivers the results via the provided action callbacks.
EntityThreadRepository
IdProvider
Default id provider that returns unique ids and reuses freed ids
NetworkLayer
The Network layer transfers network events to the application layer The Network layer transfers application events to the network layer
PriorityEntity
Interfaces
IClient
IClientRepository
IClientThreadRepository
IEntity
IEntityRepository
IEntityThreadRepository
Each thread has a own entity thread repository, so we can split the work between multiple cpus
IIdProvider<T>
Custom id provider to generate unique ids