Table of Contents

Class PredictableEntityLogic

Namespace
LiteEntitySystem
Assembly
LiteEntitySystem.dll

Entity that can be spawned on client prediction

public abstract class PredictableEntityLogic : EntityLogic, IComparable<InternalEntity>
Inheritance
object
PredictableEntityLogic
Implements
Inherited Members
Extension Methods

Constructors

PredictableEntityLogic(EntityParams)

protected PredictableEntityLogic(EntityParams entityParams)

Parameters

entityParams EntityParams

Properties

IsRecreated

Is entity is recrated from server when created using AddPredictedEntity Can be true only on client

public bool IsRecreated { get; }

Property Value

bool

Methods

OnSyncRequested()

Method for executing RPCs containing initial sync data that need to be sent after entity creation to existing players or when new player connected

protected override void OnSyncRequested()

RegisterRPC(ref RPCRegistrator)

Method for registering RPCs and OnChange notifications

protected override void RegisterRPC(ref RPCRegistrator r)

Parameters

r RPCRegistrator