Class HumanControllerLogic<TInput>
Base class for human Controller entities
Inheritance
object
HumanControllerLogic<TInput>
Implements
Inherited Members
Namespace: LiteEntitySystem
Assembly: LiteEntitySystem.dll
Syntax
[EntityFlags(EntityFlags.UpdateOnClient)]
public abstract class HumanControllerLogic<TInput> : HumanControllerLogic, IComparable<InternalEntity> where TInput : unmanaged
Type Parameters
Name | Description |
---|---|
TInput |
Constructors
HumanControllerLogic(EntityParams)
Declaration
protected HumanControllerLogic(EntityParams entityParams)
Parameters
Type | Name | Description |
---|---|---|
EntityParams | entityParams |
Properties
CurrentInput
Current player input On client created from PendingInput inside logic tick if ModifyInput called On server read from players
Declaration
public TInput CurrentInput { get; }
Property Value
Type | Description |
---|---|
TInput |
IsBot
Is controller - AI controller
Declaration
public override bool IsBot { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
ModifyPendingInput()
Get pending input reference for modifications Pending input resets to default after it was assigned to CurrentInput inside logic tick
Declaration
protected ref TInput ModifyPendingInput()
Returns
Type | Description |
---|---|
TInput | Pending input reference |