Class EntityDataSnapshot
Saves the state of the entity data
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 EntityDataSnapshot : DataSnapshot
Constructors
| Improve this Doc View SourceEntityDataSnapshot(IEntity)
Declaration
public EntityDataSnapshot(IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity |
Methods
| Improve this Doc View SourceCompareWithClient(UInt64, LinkedList<String>, IClient)
Checks which keys have changed for the input data snapshot to stay in sync
Declaration
public void CompareWithClient(ulong threadIndex, LinkedList<string> keys, IClient networkingClient)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | threadIndex | |
System.Collections.Generic.LinkedList<System.String> | keys | |
IClient | networkingClient | The networking client to compare, we need the client not the snapshot to keep reference for possible overflow |
GetLastClients()
Declaration
public HashSet<IClient> GetLastClients()
Returns
Type | Description |
---|---|
System.Collections.Generic.HashSet<IClient> |
OnOverflow(String)
Declaration
public override void OnOverflow(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Overrides
| Improve this Doc View SourceRemoveClient(IClient)
Declaration
public void RemoveClient(IClient client)
Parameters
Type | Name | Description |
---|---|---|
IClient | client |