Class 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.
Inheritance
System.Object
EntityThread
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AltV.Net.EntitySync
Assembly: AltV.Net.EntitySync.dll
Syntax
public class EntityThread
Constructors
| Improve this Doc View SourceEntityThread(UInt64, EntityThreadRepository, ClientThreadRepository, SpatialPartition, Int32, Boolean, Action<IClient, IEntity, LinkedList<String>>, Action<IClient, IEntity>, Action<IClient, IEntity, LinkedList<String>>, Action<IClient, IEntity, Vector3>, Action<IClient, IEntity>, Action<IClient, IEntity, Boolean>)
Declaration
public EntityThread(ulong threadIndex, EntityThreadRepository entityThreadRepository, ClientThreadRepository clientThreadRepository, SpatialPartition spatialPartition, int syncRate, bool netOwnerEvents, Action<IClient, IEntity, LinkedList<string>> onEntityCreate, Action<IClient, IEntity> onEntityRemove, Action<IClient, IEntity, LinkedList<string>> onEntityDataChange, Action<IClient, IEntity, Vector3> onEntityPositionChange, Action<IClient, IEntity> onEntityClearCache, Action<IClient, IEntity, bool> onEntityNetOwnerChange)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | threadIndex | |
EntityThreadRepository | entityThreadRepository | |
ClientThreadRepository | clientThreadRepository | |
SpatialPartition | spatialPartition | |
System.Int32 | syncRate | |
System.Boolean | netOwnerEvents | |
System.Action<IClient, IEntity, System.Collections.Generic.LinkedList<System.String>> | onEntityCreate | |
System.Action<IClient, IEntity> | onEntityRemove | |
System.Action<IClient, IEntity, System.Collections.Generic.LinkedList<System.String>> | onEntityDataChange | |
System.Action<IClient, IEntity, System.Numerics.Vector3> | onEntityPositionChange | |
System.Action<IClient, IEntity> | onEntityClearCache | |
System.Action<IClient, IEntity, System.Boolean> | onEntityNetOwnerChange |
Methods
| Improve this Doc View SourceStop()
Declaration
public void Stop()