Show / Hide Table of Contents

# Class SyncTimer

##### Inheritance

object
InternalBaseClass
SyncableField
SyncTimer

##### Inherited Members

SyncableField.IsClient
SyncableField.IsServer
SyncableField.BeforeReadRPC()
SyncableField.AfterReadRPC()
SyncableField.OnRollback()
SyncableField.RegisterRPC(ref SyncableRPCRegistrator)
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.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 |

#### 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 |