Class HumanControllerLogic
Inheritance
HumanControllerLogic
Assembly: LiteEntitySystem.dll
Syntax
public abstract class HumanControllerLogic : ControllerLogic, IComparable<InternalEntity>
Constructors
HumanControllerLogic(EntityParams, int)
Declaration
protected HumanControllerLogic(EntityParams entityParams, int inputSize)
Parameters
Fields
FieldsDivision
Declaration
protected const int FieldsDivision = 2
Field Value
StringSizeLimit
Declaration
public const int StringSizeLimit = 1024
Field Value
Properties
Declaration
public int InputSize { get; }
Property Value
Declaration
public int MaxInputDeltaSize { get; }
Property Value
Declaration
public int MinInputDeltaSize { get; }
Property Value
Methods
GetAssignedPlayer()
Get player that uses this controller
Declaration
public NetPlayer GetAssignedPlayer()
Returns
RegisterClientCustomType<T>()
Declaration
protected void RegisterClientCustomType<T>() where T : struct, INetSerializable
Type Parameters
RegisterClientCustomType<T>(Action<NetDataWriter, T>, Func<NetDataReader, T>)
Declaration
protected void RegisterClientCustomType<T>(Action<NetDataWriter, T> writeDelegate, Func<NetDataReader, T> readDelegate)
Parameters
Type |
Name |
Description |
Action<NetDataWriter, T> |
writeDelegate |
|
Func<NetDataReader, T> |
readDelegate |
|
Type Parameters
RegisterRPC(ref RPCRegistrator)
Method for registering RPCs and OnChange notifications
Declaration
protected override void RegisterRPC(ref RPCRegistrator r)
Parameters
Overrides
SendRequestStruct<T>(T)
Declaration
protected void SendRequestStruct<T>(T request) where T : struct, INetSerializable
Parameters
Type |
Name |
Description |
T |
request |
|
Type Parameters
SendRequestStruct<T>(T, Action<bool>)
Declaration
protected void SendRequestStruct<T>(T request, Action<bool> onResult) where T : struct, INetSerializable
Parameters
Type |
Name |
Description |
T |
request |
|
Action<bool> |
onResult |
|
Type Parameters
SendRequest<T>(T)
Declaration
protected void SendRequest<T>(T request) where T : class, new()
Parameters
Type |
Name |
Description |
T |
request |
|
Type Parameters
SendRequest<T>(T, Action<bool>)
Declaration
protected void SendRequest<T>(T request, Action<bool> onResult) where T : class, new()
Parameters
Type |
Name |
Description |
T |
request |
|
Action<bool> |
onResult |
|
Type Parameters
SubscribeToClientRequestStruct<T>(Action<T>)
Declaration
protected void SubscribeToClientRequestStruct<T>(Action<T> onRequestReceived) where T : struct, INetSerializable
Parameters
Type |
Name |
Description |
Action<T> |
onRequestReceived |
|
Type Parameters
SubscribeToClientRequestStruct<T>(Func<T, bool>)
Declaration
protected void SubscribeToClientRequestStruct<T>(Func<T, bool> onRequestReceived) where T : struct, INetSerializable
Parameters
Type |
Name |
Description |
Func<T, bool> |
onRequestReceived |
|
Type Parameters
SubscribeToClientRequest<T>(Action<T>)
Declaration
protected void SubscribeToClientRequest<T>(Action<T> onRequestReceived) where T : class, new()
Parameters
Type |
Name |
Description |
Action<T> |
onRequestReceived |
|
Type Parameters
SubscribeToClientRequest<T>(Func<T, bool>)
Declaration
protected void SubscribeToClientRequest<T>(Func<T, bool> onRequestReceived) where T : class, new()
Parameters
Type |
Name |
Description |
Func<T, bool> |
onRequestReceived |
|
Type Parameters
Implements