Show / Hide Table of Contents

Class SyncTimer

Inheritance
object
InternalBaseClass
SyncableField
SyncTimer
Inherited Members
SyncableField.IsClient
SyncableField.IsServer
SyncableField.ParentEntity
SyncableField.ParentEntityLogic
SyncableField.BeforeReadRPC()
SyncableField.AfterReadRPC()
SyncableField.OnRollback()
SyncableField.RegisterRPC(ref SyncableRPCRegistrator)
SyncableField.ExecuteRPC(in RemoteCall)
SyncableField.ExecuteRPC<T>(in RemoteCall<T>, T)
SyncableField.ExecuteRPC<T>(in RemoteCallSpan<T>, ReadOnlySpan<T>)
SyncableField.ExecuteRPC<T>(in RemoteCallSerializable<T>, T)
InternalBaseClass.OnSyncRequested()
Namespace: LiteEntitySystem.Extensions
Assembly: LiteEntitySystem.dll
Syntax
public class SyncTimer : SyncableField

Constructors

SyncTimer()

Declaration
public SyncTimer()

SyncTimer(float)

Declaration
public SyncTimer(float maxTime)
Parameters
Type Name Description
float maxTime

Properties

CountdownTime

Declaration
public float CountdownTime { get; }
Property Value
Type Description
float

ElapsedTime

Declaration
public float ElapsedTime { get; }
Property Value
Type Description
float

HasStarted

Declaration
public bool HasStarted { get; }
Property Value
Type Description
bool

IsRollbackSupported

Is supported rollback by this syncable field

Declaration
public override bool IsRollbackSupported { get; }
Property Value
Type Description
bool
Overrides
SyncableField.IsRollbackSupported

IsTimeElapsed

Declaration
public bool IsTimeElapsed { get; }
Property Value
Type Description
bool

MaxTime

Declaration
public float MaxTime { get; }
Property Value
Type Description
float

Progress

Declaration
public float Progress { get; }
Property Value
Type Description
float

Methods

CheckAndSubtractMaxTime()

Declaration
public bool CheckAndSubtractMaxTime()
Returns
Type Description
bool

Finish()

Declaration
public void Finish()

LerpByProgress(float, float)

Declaration
public float LerpByProgress(float a, float b)
Parameters
Type Name Description
float a
float b
Returns
Type Description
float

LerpByProgress(float, float, bool)

Declaration
public float LerpByProgress(float a, float b, bool inverse)
Parameters
Type Name Description
float a
float b
bool inverse
Returns
Type Description
float

Reset()

Declaration
public void Reset()

Reset(float)

Declaration
public void Reset(float maxTime)
Parameters
Type Name Description
float maxTime

Update(float)

Declaration
public bool Update(float delta)
Parameters
Type Name Description
float delta
Returns
Type Description
bool

UpdateAndCheck(float)

Declaration
public bool UpdateAndCheck(float delta)
Parameters
Type Name Description
float delta
Returns
Type Description
bool

UpdateAndReset(float)

Declaration
public bool UpdateAndReset(float delta)
Parameters
Type Name Description
float delta
Returns
Type Description
bool
In this article
Back to top Generated by DocFX