Show / Hide Table of Contents

# Class PawnLogic

Base class for entites that can be controlled by Controller

##### Inheritance

object
InternalBaseClass
InternalEntity
EntityLogic
PawnLogic

##### Implements

IComparable<InternalEntity>

##### Inherited Members

EntityLogic.Childs
EntityLogic.ParentId
EntityLogic.SharedReference
EntityLogic.EnableLagCompensationForOwner()
EntityLogic.DisableLagCompensationForOwner()
EntityLogic.GetFrameSeed()
EntityLogic.AddPredictedEntity<T>(Action<T>)
EntityLogic.AddPredictedEntity<T>(ref SyncVar<EntitySharedReference>, Action<T>)
EntityLogic.SetParent(EntityLogic)
EntityLogic.GetParent<T>()
EntityLogic.OnLagCompensationStart()
EntityLogic.OnLagCompensationEnd()
EntityLogic.OnBeforeParentDestroy()
EntityLogic.RegisterRPC(ref RPCRegistrator)
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.OnBeforeRollback()
InternalEntity.OnRollback()
InternalEntity.VisualUpdate()
InternalEntity.OnConstructed()
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.Updateable)]
    public abstract class PawnLogic : EntityLogic, IComparable<InternalEntity>

### Constructors

#### PawnLogic(EntityParams)

##### Declaration

    protected PawnLogic(EntityParams entityParams)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityParams | entityParams |

### Properties

#### Controller

##### Declaration

    public ControllerLogic Controller { get; }

##### Property Value

Type | Description
--- | ---
ControllerLogic |

### Methods

#### Update()

Fixed update. Called if entity has attribute EntityFlagsAttribute and flag Updateable

##### Declaration

    protected override void Update()

##### Overrides

InternalEntity.Update()

### Implements

IComparable<T>