Table of Contents

Class HumanControllerLogic

Namespace
LiteEntitySystem
Assembly
LiteEntitySystem.dll
public abstract class HumanControllerLogic : ControllerLogic, IComparable<InternalEntity>
Inheritance
object
HumanControllerLogic
Implements
Derived
Inherited Members

Constructors

HumanControllerLogic(EntityParams, int)

protected HumanControllerLogic(EntityParams entityParams, int inputSize)

Parameters

entityParams EntityParams
inputSize int

Fields

FieldsDivision

protected const int FieldsDivision = 2

Field Value

int

StringSizeLimit

public const int StringSizeLimit = 1024

Field Value

int

Properties

InputSize

public int InputSize { get; }

Property Value

int

MaxInputDeltaSize

public int MaxInputDeltaSize { get; }

Property Value

int

MinInputDeltaSize

public int MinInputDeltaSize { get; }

Property Value

int

Methods

GetAssignedPlayer()

Get player that uses this controller

public NetPlayer GetAssignedPlayer()

Returns

NetPlayer

assigned player

RegisterClientCustomType<T>()

protected void RegisterClientCustomType<T>() where T : struct, INetSerializable

Type Parameters

T

RegisterClientCustomType<T>(Action<NetDataWriter, T>, Func<NetDataReader, T>)

protected void RegisterClientCustomType<T>(Action<NetDataWriter, T> writeDelegate, Func<NetDataReader, T> readDelegate)

Parameters

writeDelegate Action<NetDataWriter, T>
readDelegate Func<NetDataReader, T>

Type Parameters

T

RegisterRPC(ref RPCRegistrator)

Method for registering RPCs and OnChange notifications

protected override void RegisterRPC(ref RPCRegistrator r)

Parameters

r RPCRegistrator

SendRequestStruct<T>(T)

protected void SendRequestStruct<T>(T request) where T : struct, INetSerializable

Parameters

request T

Type Parameters

T

SendRequestStruct<T>(T, Action<bool>)

protected void SendRequestStruct<T>(T request, Action<bool> onResult) where T : struct, INetSerializable

Parameters

request T
onResult Action<bool>

Type Parameters

T

SendRequest<T>(T)

protected void SendRequest<T>(T request) where T : class, new()

Parameters

request T

Type Parameters

T

SendRequest<T>(T, Action<bool>)

protected void SendRequest<T>(T request, Action<bool> onResult) where T : class, new()

Parameters

request T
onResult Action<bool>

Type Parameters

T

SubscribeToClientRequestStruct<T>(Action<T>)

protected void SubscribeToClientRequestStruct<T>(Action<T> onRequestReceived) where T : struct, INetSerializable

Parameters

onRequestReceived Action<T>

Type Parameters

T

SubscribeToClientRequestStruct<T>(Func<T, bool>)

protected void SubscribeToClientRequestStruct<T>(Func<T, bool> onRequestReceived) where T : struct, INetSerializable

Parameters

onRequestReceived Func<T, bool>

Type Parameters

T

SubscribeToClientRequest<T>(Action<T>)

protected void SubscribeToClientRequest<T>(Action<T> onRequestReceived) where T : class, new()

Parameters

onRequestReceived Action<T>

Type Parameters

T

SubscribeToClientRequest<T>(Func<T, bool>)

protected void SubscribeToClientRequest<T>(Func<T, bool> onRequestReceived) where T : class, new()

Parameters

onRequestReceived Func<T, bool>

Type Parameters

T