Class Entity
Inheritance
System.Object
Entity
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AltV.Net.EntitySync.dll
Syntax
public class Entity : IEntity
Constructors
|
Improve this Doc
View Source
Entity(UInt64, Vector3, Int32, UInt32)
Declaration
public Entity(ulong type, Vector3 position, int dimension, uint range)
Parameters
| Type |
Name |
Description |
| System.UInt64 |
type |
|
| System.Numerics.Vector3 |
position |
|
| System.Int32 |
dimension |
|
| System.UInt32 |
range |
|
|
Improve this Doc
View Source
Entity(UInt64, Vector3, Int32, UInt32, IDictionary<String, Object>)
Declaration
public Entity(ulong type, Vector3 position, int dimension, uint range, IDictionary<string, object> data)
Parameters
| Type |
Name |
Description |
| System.UInt64 |
type |
|
| System.Numerics.Vector3 |
position |
|
| System.Int32 |
dimension |
|
| System.UInt32 |
range |
|
| System.Collections.Generic.IDictionary<System.String, System.Object> |
data |
|
|
Improve this Doc
View Source
Entity(UInt64, Vector3, Int32, UInt32, UInt32)
Declaration
public Entity(ulong type, Vector3 position, int dimension, uint range, uint migrationDistance)
Parameters
| Type |
Name |
Description |
| System.UInt64 |
type |
|
| System.Numerics.Vector3 |
position |
|
| System.Int32 |
dimension |
|
| System.UInt32 |
range |
|
| System.UInt32 |
migrationDistance |
|
|
Improve this Doc
View Source
Entity(UInt64, Vector3, Int32, UInt32, UInt32, IDictionary<String, Object>)
Declaration
public Entity(ulong type, Vector3 position, int dimension, uint range, uint migrationDistance, IDictionary<string, object> data)
Parameters
| Type |
Name |
Description |
| System.UInt64 |
type |
|
| System.Numerics.Vector3 |
position |
|
| System.Int32 |
dimension |
|
| System.UInt32 |
range |
|
| System.UInt32 |
migrationDistance |
|
| System.Collections.Generic.IDictionary<System.String, System.Object> |
data |
|
Properties
|
Improve this Doc
View Source
DataSnapshot
Declaration
public EntityDataSnapshot DataSnapshot { get; }
Property Value
|
Improve this Doc
View Source
Dimension
Declaration
public int Dimension { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Exists
Declaration
public bool Exists { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
HashKey
Declaration
public (ulong, ulong) HashKey { get; }
Property Value
| Type |
Description |
| System.ValueTuple<System.UInt64, System.UInt64> |
|
|
Improve this Doc
View Source
Id
Declaration
Property Value
| Type |
Description |
| System.UInt64 |
|
|
Improve this Doc
View Source
LastStreamInRange
Declaration
public float LastStreamInRange { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
|
Improve this Doc
View Source
MigrationDistance
Declaration
public uint MigrationDistance { get; }
Property Value
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
NetOwner
Declaration
public IClient NetOwner { get; set; }
Property Value
|
Improve this Doc
View Source
NetOwnerRange
Declaration
public float NetOwnerRange { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
|
Improve this Doc
View Source
Position
Declaration
public Vector3 Position { get; set; }
Property Value
| Type |
Description |
| System.Numerics.Vector3 |
|
|
Improve this Doc
View Source
Range
Declaration
public uint Range { get; set; }
Property Value
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
RangeSquared
Declaration
public uint RangeSquared { get; }
Property Value
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
StartingXIndex
Declaration
public int StartingXIndex { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
StartingYIndex
Declaration
public int StartingYIndex { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
StoppingXIndex
Declaration
public int StoppingXIndex { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
StoppingYIndex
Declaration
public int StoppingYIndex { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
TempNetOwner
Declaration
public IClient TempNetOwner { get; set; }
Property Value
|
Improve this Doc
View Source
TempNetOwnerRange
Declaration
public float TempNetOwnerRange { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
|
Improve this Doc
View Source
ThreadLocalData
Declaration
public IDictionary<string, object> ThreadLocalData { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IDictionary<System.String, System.Object> |
|
|
Improve this Doc
View Source
Type
Declaration
public ulong Type { get; }
Property Value
| Type |
Description |
| System.UInt64 |
|
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetClients()
Declaration
public HashSet<IClient> GetClients()
Returns
| Type |
Description |
| System.Collections.Generic.HashSet<IClient> |
|
|
Improve this Doc
View Source
GetDataKeys()
Declaration
public ICollection<string> GetDataKeys()
Returns
| Type |
Description |
| System.Collections.Generic.ICollection<System.String> |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
RemoveClient(IClient)
Declaration
public bool RemoveClient(IClient client)
Parameters
| Type |
Name |
Description |
| IClient |
client |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ResetData(String)
Declaration
public void ResetData(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
|
Improve this Doc
View Source
ResetThreadLocalData(String)
Declaration
public void ResetThreadLocalData(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
|
Improve this Doc
View Source
Serialize(IEnumerable<String>)
Declaration
public virtual byte[] Serialize(IEnumerable<string> changedKeys)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
changedKeys |
|
Returns
| Type |
Description |
| System.Byte[] |
|
|
Improve this Doc
View Source
SetData(String, Object)
Declaration
public void SetData(string key, object value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
|
Improve this Doc
View Source
SetDimensionInternal(Int32)
Declaration
public void SetDimensionInternal(int currNewDimension)
Parameters
| Type |
Name |
Description |
| System.Int32 |
currNewDimension |
|
|
Improve this Doc
View Source
SetExistsInternal(Boolean)
Declaration
public void SetExistsInternal(bool state)
Parameters
| Type |
Name |
Description |
| System.Boolean |
state |
|
|
Improve this Doc
View Source
SetPositionInternal(Vector3)
Declaration
public void SetPositionInternal(Vector3 currNewPosition)
Parameters
| Type |
Name |
Description |
| System.Numerics.Vector3 |
currNewPosition |
|
|
Improve this Doc
View Source
SetRangeInternal(UInt32)
Declaration
public void SetRangeInternal(uint currNewRange)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
currNewRange |
|
|
Improve this Doc
View Source
SetThreadLocalData(String, Object)
Declaration
public void SetThreadLocalData(string key, object value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
|
Improve this Doc
View Source
TryAddClient(IClient)
Tries to add a client to the list of clients that created this entity.
Declaration
public bool TryAddClient(IClient client)
Parameters
| Type |
Name |
Description |
| IClient |
client |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
TryGetData(String, out Object)
Declaration
public bool TryGetData(string key, out object value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
TryGetData<T>(String, out T)
Declaration
public bool TryGetData<T>(string key, out T value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| T |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryGetThreadLocalData(String, out Object)
Declaration
public bool TryGetThreadLocalData(string key, out object value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
TrySetPropertiesComputing(out Vector3, out UInt32, out Int32, out Vector3, out UInt32, out Int32)
Declaration
public (bool, bool, bool) TrySetPropertiesComputing(out Vector3 currOldPosition, out uint currOldRange, out int currOldDimension, out Vector3 currNewPosition, out uint currNewRange, out int currNewDimension)
Parameters
| Type |
Name |
Description |
| System.Numerics.Vector3 |
currOldPosition |
|
| System.UInt32 |
currOldRange |
|
| System.Int32 |
currOldDimension |
|
| System.Numerics.Vector3 |
currNewPosition |
|
| System.UInt32 |
currNewRange |
|
| System.Int32 |
currNewDimension |
|
Returns
| Type |
Description |
| System.ValueTuple<System.Boolean, System.Boolean, System.Boolean> |
|
Implements