Table of Contents

Class Simulation

Namespace
Netick
Assembly
Netick.dll
public abstract class Simulation
Inheritance
Simulation
Derived
Inherited Members

Fields

UnlinkedEntities

public Dictionary<int, Entity> UnlinkedEntities

Field Value

Dictionary<int, Entity>

Properties

CurrentInput

public SimulationInput CurrentInput { get; }

Property Value

SimulationInput

Methods

ClientAddUnlinkedEntity(Entity, int, int)

public void ClientAddUnlinkedEntity(Entity entity, int id, int worldIndex)

Parameters

entity Entity
id int
worldIndex int

CreateAndLinkEntityLocal(INetickEntity)

public Entity CreateAndLinkEntityLocal(INetickEntity userEntity)

Parameters

userEntity INetickEntity

Returns

Entity

CreateEntity(int)

public Entity CreateEntity(int stateSizeWords)

Parameters

stateSizeWords int

Returns

Entity

FetchInputLocal<T>(out T, ref bool, int)

public bool FetchInputLocal<T>(out T input, ref bool isDuplicated, int localPlayerIndex) where T : unmanaged

Parameters

input T
isDuplicated bool
localPlayerIndex int

Returns

bool

Type Parameters

T

GetEntityByWorldIndex(int)

public Entity GetEntityByWorldIndex(int worldIndex)

Parameters

worldIndex int

Returns

Entity

GetInput<T>(int)

public T GetInput<T>(int index) where T : unmanaged

Parameters

index int

Returns

T

Type Parameters

T

LinkEntity(INetickEntity, Entity)

public Entity LinkEntity(INetickEntity userEntity, Entity entity)

Parameters

userEntity INetickEntity
entity Entity

Returns

Entity

RemoveFromNetworkLoop(Entity)

public void RemoveFromNetworkLoop(Entity entity)

Parameters

entity Entity

SetInput<T>(T, int)

public void SetInput<T>(T input, int index) where T : unmanaged

Parameters

input T
index int

Type Parameters

T