Class 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.
Inheritance
System.Object
Client
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()
Assembly: AltV.Net.EntitySync.dll
Syntax
public class Client : IClient
Constructors
|
Improve this Doc
View Source
Client(UInt64, String)
Declaration
public Client(ulong threadCount, string token)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadCount |
|
System.String |
token |
|
Properties
|
Improve this Doc
View Source
Dimension
Declaration
public virtual int Dimension { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Exists
Declaration
public virtual bool Exists { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Position
Declaration
public virtual Vector3 Position { get; set; }
Property Value
Type |
Description |
System.Numerics.Vector3 |
|
|
Improve this Doc
View Source
Snapshot
Declaration
public ClientDataSnapshot Snapshot { get; }
Property Value
|
Improve this Doc
View Source
Token
Declaration
public string Token { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AddCheck(UInt64, IEntity)
Declaration
public void AddCheck(ulong threadIndex, IEntity entity)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
IEntity |
entity |
|
|
Improve this Doc
View Source
GetEntities(UInt64)
Declaration
public Dictionary<IEntity, bool> GetEntities(ulong threadIndex)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
Returns
Type |
Description |
System.Collections.Generic.Dictionary<IEntity, System.Boolean> |
|
|
Improve this Doc
View Source
GetLastCheckedEntities(UInt64)
Declaration
public IDictionary<IEntity, bool> GetLastCheckedEntities(ulong threadIndex)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<IEntity, System.Boolean> |
|
|
Improve this Doc
View Source
RemoveCheck(UInt64, IEntity)
Declaration
public void RemoveCheck(ulong threadIndex, IEntity entity)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
IEntity |
entity |
|
|
Improve this Doc
View Source
RemoveEntity(UInt64, IEntity)
Declaration
public void RemoveEntity(ulong threadIndex, IEntity entity)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
IEntity |
entity |
|
|
Improve this Doc
View Source
RemoveEntityFully(UInt64, IEntity)
Declaration
public void RemoveEntityFully(ulong threadIndex, IEntity entity)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
IEntity |
entity |
|
|
Improve this Doc
View Source
ResetPositionOverride()
Declaration
public virtual void ResetPositionOverride()
|
Improve this Doc
View Source
SetPositionOverride(Vector3)
Declaration
public virtual void SetPositionOverride(Vector3 newPositionOverride)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
newPositionOverride |
|
|
Improve this Doc
View Source
TryAddEntity(UInt64, IEntity)
Tries to add a entity to the list of entities that this client got created.
Declaration
public bool TryAddEntity(ulong threadIndex, IEntity entity)
Parameters
Type |
Name |
Description |
System.UInt64 |
threadIndex |
|
IEntity |
entity |
|
Returns
Type |
Description |
System.Boolean |
true of entity wasn't created
|
|
Improve this Doc
View Source
TryGetDimensionAndPosition(out Int32, ref Vector3)
Declaration
public virtual bool TryGetDimensionAndPosition(out int dimension, ref Vector3 position)
Parameters
Type |
Name |
Description |
System.Int32 |
dimension |
|
System.Numerics.Vector3 |
position |
|
Returns
Type |
Description |
System.Boolean |
|
Implements