Class PredictableEntityLogic
- Namespace
- LiteEntitySystem
- Assembly
- LiteEntitySystem.dll
Entity that can be spawned on client prediction
public abstract class PredictableEntityLogic : EntityLogic, IComparable<InternalEntity>
- Inheritance
-
objectPredictableEntityLogic
- Implements
- Inherited Members
- Extension Methods
Constructors
PredictableEntityLogic(EntityParams)
protected PredictableEntityLogic(EntityParams entityParams)
Parameters
entityParamsEntityParams
Properties
IsRecreated
Is entity is recrated from server when created using AddPredictedEntity Can be true only on client
public bool IsRecreated { get; }
Property Value
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)