Show / Hide Table of Contents

# Class ControllerLogic

Base class for Controller entities

##### Inheritance

object
InternalBaseClass
InternalEntity
ControllerLogic
AiControllerLogic
HumanControllerLogic

##### Implements

IComparable<InternalEntity>

##### Inherited Members

InternalEntity.ClassId
InternalEntity.Id
InternalEntity.EntityManager
InternalEntity.IsServer
InternalEntity.IsClient
InternalEntity.Version
InternalEntity.IsDestroyed
InternalEntity.IsLocalControlled
InternalEntity.IsRemoteControlled
InternalEntity.IsServerControlled
InternalEntity.ClientManager
InternalEntity.ServerManager
InternalEntity.OwnerId
InternalEntity.IsLocal
InternalEntity.Destroy()
InternalEntity.OnDestroy()
InternalEntity.Update()
InternalEntity.OnBeforeRollback()
InternalEntity.OnRollback()
InternalEntity.VisualUpdate()
InternalEntity.OnConstructed()
InternalEntity.RegisterRPC(ref RPCRegistrator)
InternalEntity.CompareTo(InternalEntity)
InternalEntity.GetHashCode()
InternalEntity.ToString()
InternalBaseClass.ExecuteRPC(in RemoteCall)
InternalBaseClass.ExecuteRPC<T>(in RemoteCall<T>, T)
InternalBaseClass.ExecuteRPC<T>(in RemoteCallSpan<T>, ReadOnlySpan<T>)
InternalBaseClass.ExecuteRPC<T>(in RemoteCallSerializable<T>, T)
InternalBaseClass.OnSyncRequested()

###### 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()

##### Declaration

    public virtual void BeforeControlledUpdate()

#### DestroyWithControlledEntity()

##### 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)

##### Declaration

    public void StartControl(PawnLogic target)

##### Parameters

Type | Name | Description
--- | --- | ---
PawnLogic | target |

#### StopControl()

##### Declaration

    public void StopControl()

### Implements

IComparable<T>