Class Entity
- Namespace
- Netick
- Assembly
- Netick.dll
Represents a networked entity (object) in Netick.
[IgnoreCodeGen]
public sealed class Entity
- Inheritance
-
Entity
- Inherited Members
Fields
BehsHash
public int BehsHash
Field Value
BlockIndex
public int BlockIndex
Field Value
Engine
public readonly NetickEngine Engine
Field Value
GroupTableId
public int GroupTableId
Field Value
IsMarkedForDestruction
public bool IsMarkedForDestruction
Field Value
LastReceivedTick
public Tick LastReceivedTick
Field Value
ObjectMeta
public NetickUniqueObjectMeta ObjectMeta
Field Value
Position
public Vector3 Position
Field Value
RawId
public int RawId
Field Value
StateOffsetBytes
public long StateOffsetBytes
Field Value
StatePtr
public int* StatePtr
Field Value
- int*
StateSizeWords
public long StateSizeWords
Field Value
UserEntity
public INetickEntity UserEntity
Field Value
UserId
public int UserId
Field Value
WorldIndex
public int WorldIndex
Field Value
Properties
AdaptiveRemoteInterpolation
public AdaptiveRemoteInterpolation AdaptiveRemoteInterpolation { get; }
Property Value
Id
public int Id { get; }
Property Value
InputSource
public NetworkPlayer InputSource { get; set; }
Property Value
InputSourcePlayerId
public NetworkPlayerId InputSourcePlayerId { get; }
Property Value
InterestGroup
public InterestManagementGroup InterestGroup { get; set; }
Property Value
IsInputSource
public bool IsInputSource { get; }
Property Value
IsInterested
public bool IsInterested { get; }
Property Value
IsOwner
public bool IsOwner { get; }
Property Value
IsPredicted
public bool IsPredicted { get; }
Property Value
IsProxy
public bool IsProxy { get; }
Property Value
IsResimulating
public bool IsResimulating { get; }
Property Value
Methods
GetStateRef()
public EntityStateRef GetStateRef()
Returns
GetStateSizeWords(INetickNetworkScript[])
public static int GetStateSizeWords(INetickNetworkScript[] scripts)
Parameters
scriptsINetickNetworkScript[]
Returns
InterestMarkAltered(int, int)
public bool InterestMarkAltered(int index, int isInputSourceOnly = 0)
Parameters
Returns
InternalDirtify(INetickNetworkScript, int*, int*, int, int, int)
public static void InternalDirtify(INetickNetworkScript script, int* data, int* p, int sizeInWords, int hasOnChanged, int isInputSourceOnly = 0)
Parameters
InternalRegOnChanged(INetickNetworkScript, int, int, int, int, int, int, OnChangedEvent)
public static void InternalRegOnChanged(INetickNetworkScript script, int isArray, int invokeDuringResims, int inversePrecision, int propertyStart, int propertyPartIndex, int propertySizeWords, OnChangedEvent onChanged)
Parameters
scriptINetickNetworkScriptisArrayintinvokeDuringResimsintinversePrecisionintpropertyStartintpropertyPartIndexintpropertySizeWordsintonChangedOnChangedEvent
InternalRegSmooth(INetickNetworkScript, string, int, float, int)
public static void InternalRegSmooth(INetickNetworkScript script, string propertyName, int offsetInWords, float precision, int vectorFloatFieldsCount)
Parameters
scriptINetickNetworkScriptpropertyNamestringoffsetInWordsintprecisionfloatvectorFloatFieldsCountint
InvokeGameEngineIntoNetcode()
public void InvokeGameEngineIntoNetcode()
InvokeNetcodeIntoGameEngine()
public void InvokeNetcodeIntoGameEngine()
MarkAltered(int*, int)
public bool MarkAltered(int* p, int isInputSourceOnly = 0)
Parameters
Returns
Move(Vector3)
public void Move(Vector3 newPos)
Parameters
newPosVector3
SetNarrowphaseInterest(NetworkPlayer, bool)
public void SetNarrowphaseInterest(NetworkPlayer player, bool isInterested)
Parameters
playerNetworkPlayerisInterestedbool
SetState(int*, int*, int, int, int)
public void SetState(int* newValue, int* p, int size, int hasOnChanged, int isInputSourceOnly)
Parameters
SetStateFrom(byte*, int, int, bool)
public void SetStateFrom(byte* source, int offsetWords, int sizeWords, bool invokeOnChanged)
Parameters
SetState_Collection(int*, int*, int, int, int, int)
public void SetState_Collection(int* newValue, int* p, int size, int hasOnChanged, int isInputSourceOnly, int collectionHasOnChanged)