• Hello
Search Results for

    Show / Hide Table of Contents

    Class GameTimeMonitor

    Compares Unity's clock with a real-time reference and reports the speed.

    Inheritance
    System.Object
    AMonitor<IWatchedSubject>
    GameTimeMonitor
    Implements
    IMonitor<IWatchedSubject>
    Inherited Members
    AMonitor<IWatchedSubject>.IsActive
    AMonitor<IWatchedSubject>.IsStarted
    AMonitor<IWatchedSubject>.IsPaused
    AMonitor<IWatchedSubject>.Start()
    AMonitor<IWatchedSubject>.Pause()
    AMonitor<IWatchedSubject>.OnPause()
    AMonitor<IWatchedSubject>.Resume()
    AMonitor<IWatchedSubject>.Stop()
    AMonitor<IWatchedSubject>.Dispose()
    AMonitor<IWatchedSubject>.ForceReadTimeoutSeconds
    AMonitor<IWatchedSubject>.WaitForForceRead()
    AMonitor<IWatchedSubject>.ForceReadAsync()
    AMonitor<IWatchedSubject>.CompletedRead(IWatchedSubject)
    AMonitor<IWatchedSubject>.Subscribe(IObserver<IWatchedSubject>)
    AMonitor<IWatchedSubject>.Notify(IWatchedSubject)
    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
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.Name

    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
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.ForceRead()
    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 is destroyed.

    Declaration
    protected override void OnDestroy()
    Overrides
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.OnDestroy()

    OnResume()

    Called when the monitor is resumed. Override to provide custom resume behavior.

    Declaration
    protected override void OnResume()
    Overrides
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.OnResume()

    OnStart()

    Called when the monitor is started. Override to provide custom start behavior.

    Declaration
    protected override void OnStart()
    Overrides
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.OnStart()

    OnStop()

    Called when the monitor is stopped. Override to provide custom stop behavior.

    Declaration
    protected override void OnStop()
    Overrides
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.OnStop()

    OnUpdate()

    Takes one sample when the reference clock has ticked, and publishes a GameTimeStatus once the window is full.

    Declaration
    protected override void OnUpdate()
    Overrides
    GUPS.AntiCheat.Monitor.AMonitor<IWatchedSubject>.OnUpdate()

    Implements

    IMonitor<>

    See Also

    DeviceTimeContinuousMonitor
    DeviceTimeEventMonitor
    In This Article
    Back to top GuardingPearSoftware documentation