Class ControllerLogic
Base class for Controller entities
Inheritance
object
ControllerLogic
Implements
Inherited Members
Namespace: LiteEntitySystem
Assembly: LiteEntitySystem.dll
Syntax
[EntityFlags(EntityFlags.OnlyForOwner)]
public abstract class ControllerLogic : InternalEntity, IComparable<InternalEntity>
Constructors
ControllerLogic(EntityParams)
Declaration
protected ControllerLogic(EntityParams entityParams)
Parameters
Type | Name | Description |
---|---|---|
EntityParams | entityParams |
Properties
IsBot
Is controller - AI controller
Declaration
public abstract bool IsBot { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
BeforeControlledUpdate()
Called before controlled entity update. Useful for input
Declaration
protected virtual void BeforeControlledUpdate()
DestroyWithControlledEntity()
Destroy controller and controlled pawn
Declaration
public void DestroyWithControlledEntity()
GetControlledEntity<T>()
Declaration
public T GetControlledEntity<T>() where T : PawnLogic
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
StartControl(PawnLogic)
Start control pawn
Declaration
public void StartControl(PawnLogic target)
Parameters
Type | Name | Description |
---|---|---|
PawnLogic | target |
StopControl()
Stop control pawn
Declaration
public void StopControl()