Show / Hide Table of Contents

Class HumanControllerLogic

Inheritance
object
InternalBaseClass
InternalEntity
ControllerLogic
HumanControllerLogic
HumanControllerLogic<TInput>
Implements
IComparable<InternalEntity>
Inherited Members
ControllerLogic.IsBot
ControllerLogic.GetControlledEntity<T>()
ControllerLogic.BeforeControlledUpdate()
ControllerLogic.DestroyWithControlledEntity()
ControllerLogic.StartControl(PawnLogic)
ControllerLogic.StopControl()
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.Update()
InternalEntity.OnBeforeRollback()
InternalEntity.OnRollback()
InternalEntity.VisualUpdate()
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
public abstract class HumanControllerLogic : ControllerLogic, IComparable<InternalEntity>

Constructors

HumanControllerLogic(EntityParams)

Declaration
protected HumanControllerLogic(EntityParams entityParams)
Parameters
Type Name Description
EntityParams entityParams

Methods

ChangeEntityDiffSync(EntityLogic, bool)

Change entity delta-diff synchronization for player that owns this controller constructor and destruction will be synchronized anyways works only on server

Declaration
public void ChangeEntityDiffSync(EntityLogic entity, bool enable)
Parameters
Type Name Description
EntityLogic entity

entity

bool enable

true - enable sync (if was disabled), disable otherwise

IsEntityDiffSyncDisabled(EntitySharedReference)

Is entity delta-diff synchronization disabled. Works on client and server

Declaration
public bool IsEntityDiffSyncDisabled(EntitySharedReference entity)
Parameters
Type Name Description
EntitySharedReference entity

entity to check

Returns
Type Description
bool

true if entity sync is disabled

OnConstructed()

Called when entity constructed

Declaration
protected override void OnConstructed()
Overrides
InternalEntity.OnConstructed()

OnDestroy()

Event called on entity destroy

Declaration
protected override void OnDestroy()
Overrides
InternalEntity.OnDestroy()

OnEntityDiffSyncChanged(EntityLogic, bool)

Called when entity diff sync changed (enabled or disabled) useful for hiding disabled entities

Declaration
protected virtual void OnEntityDiffSyncChanged(EntityLogic entity, bool enabled)
Parameters
Type Name Description
EntityLogic entity

entity

bool enabled

sync enabled or disabled

RegisterRPC(ref RPCRegistrator)

Method for registering RPCs and OnChange notifications

Declaration
protected override void RegisterRPC(ref RPCRegistrator r)
Parameters
Type Name Description
RPCRegistrator r
Overrides
InternalEntity.RegisterRPC(ref RPCRegistrator)

ResetEntitiesDiffSync()

Enable diff sync for all entities that has disabled diff sync

Declaration
public void ResetEntitiesDiffSync()

Implements

IComparable<T>
In this article
Back to top Generated by DocFX