Class ClientDataSnapshot
This contains all snapshots of entities the client visited, and a buffer to use when comparing snapshots to reduce allocations
Inheritance
System.Object
ClientDataSnapshot
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 ClientDataSnapshot
Constructors
| Improve this Doc View SourceClientDataSnapshot(UInt64)
Declaration
public ClientDataSnapshot(ulong threadCount)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | threadCount |
Methods
| Improve this Doc View SourceGetSnapshot(UInt64)
Declaration
public Dictionary<IEntity, DataSnapshot> GetSnapshot(ulong threadIndex)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | threadIndex |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<IEntity, DataSnapshot> |
SetSnapshotForEntity(IEntity, UInt64, DataSnapshot)
Declaration
public void SetSnapshotForEntity(IEntity entity, ulong threadIndex, DataSnapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | |
System.UInt64 | threadIndex | |
DataSnapshot | snapshot |
TryGetSnapshotForEntity(IEntity, UInt64, out DataSnapshot)
Declaration
public bool TryGetSnapshotForEntity(IEntity entity, ulong threadIndex, out DataSnapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | |
System.UInt64 | threadIndex | |
DataSnapshot | snapshot |
Returns
Type | Description |
---|---|
System.Boolean |
TryGetSnapshotForEntityOnAnySnapshot(IEntity, out DataSnapshot)
Declaration
public bool TryGetSnapshotForEntityOnAnySnapshot(IEntity entity, out DataSnapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | |
DataSnapshot | snapshot |
Returns
Type | Description |
---|---|
System.Boolean |