Class GameTimeMonitor
Compares Unity's clock with a real-time reference and reports the speed.
Implements
Inherited Members
Namespace: GUPS.AntiCheat.Monitor.Time
Assembly: cs.temp.dll.dll
Syntax
public class GameTimeMonitor : AMonitor<IWatchedSubject>
Properties
Name
Gets the display name of the monitor.
Declaration
public override String Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Overrides
Methods
ForceRead()
Classifies the samples already merged in the window and returns that finding. Does not notify observers and does not push a new sample.
Declaration
public override IWatchedSubject ForceRead()
Returns
| Type | Description |
|---|---|
| IWatchedSubject | The current merged GameTimeStatus. |
Overrides
Remarks
An empty window, or a window whose real-time sum is still zero, reports None. GUPS.AntiCheat.Monitor.Time.GameTimeMonitor.Classify(System.Single@) treats that empty sum as sped up, which is only meaningful once the automatic path has a real span to compare. The classification is already available, so the call returns it directly.
OnDestroy()
Stops the monitor when the underlying
Declaration
protected override void OnDestroy()
Overrides
OnResume()
Called when the monitor is resumed. Override to provide custom resume behavior.
Declaration
protected override void OnResume()
Overrides
OnStart()
Called when the monitor is started. Override to provide custom start behavior.
Declaration
protected override void OnStart()
Overrides
OnStop()
Called when the monitor is stopped. Override to provide custom stop behavior.
Declaration
protected override void OnStop()
Overrides
OnUpdate()
Takes one sample when the reference clock has ticked, and publishes a GameTimeStatus once the window is full.
Declaration
protected override void OnUpdate()