• Hello
Search Results for

    Show / Hide Table of Contents

    Class DeviceTimeCheatingDetector

    Detects device-clock manipulation and exposes a trusted UTC time.

    Inheritance
    System.Object
    ADetector<ICheatingDetectionStatus>
    DeviceTimeCheatingDetector
    Implements
    IDetector<ICheatingDetectionStatus>
    Inherited Members
    ADetector<ICheatingDetectionStatus>.IsActive
    ADetector<ICheatingDetectionStatus>.Subscribe(IObserver<ICheatingDetectionStatus>)
    ADetector<ICheatingDetectionStatus>.Notify(ICheatingDetectionStatus)
    ADetector<ICheatingDetectionStatus>.Dispose()
    Namespace: GUPS.AntiCheat.Detector
    Assembly: cs.temp.dll.dll
    Syntax
    public class DeviceTimeCheatingDetector : ADetector<ICheatingDetectionStatus>

    Fields

    OnCheatingDetectionEvent

    Unity event raised on every detection. Useful to wire up reactions through the inspector without writing an .

    Declaration
    public CheatingDetectionEvent<DeviceTimeDetectionStatus> OnCheatingDetectionEvent
    Field Value
    Type Description
    CheatingDetectionEvent<DeviceTimeDetectionStatus>

    Properties

    CurrentUtcTime

    The trusted UTC time.

    Declaration
    public DateTime CurrentUtcTime { get; }
    Property Value
    Type Description
    DateTime

    IsServerTimeResolved

    Whether the trusted UTC comes from a successful internet read.

    Declaration
    public bool IsServerTimeResolved { get; }
    Property Value
    Type Description
    System.Boolean

    IsSupported

    Gets a value indicating whether the detector is supported on the current platform.

    Declaration
    public override bool IsSupported { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.IsSupported

    Name

    Gets the human-readable name of the detector.

    Declaration
    public override String Name { get; }
    Property Value
    Type Description
    String
    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.Name

    PossibilityOfFalsePositive

    Gets the false-positive likelihood reported with each detection.

    Declaration
    public float PossibilityOfFalsePositive { get; }
    Property Value
    Type Description
    System.Single

    PossibleCheatingDetected

    Gets a value indicating whether the detector has observed possible cheating activity.

    Declaration
    public override bool PossibleCheatingDetected { get; protected set; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.PossibleCheatingDetected

    ThreatRating

    Gets the threat rating reported with every detection. Higher values denote greater perceived threats.

    Declaration
    public override uint ThreatRating { get; protected set; }
    Property Value
    Type Description
    System.UInt32
    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.ThreatRating

    Tolerance

    Allowed deviation in seconds, never below GUPS.AntiCheat.Detector.DeviceTimeCheatingDetector.MinTolerance.

    Declaration
    public float Tolerance { get; }
    Property Value
    Type Description
    System.Single

    Methods

    Awake()

    Subscribes to the device-time monitors on the same .

    Declaration
    protected override void Awake()
    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.Awake()

    OnCompleted()

    Called when an observed subject signals completion.

    Declaration
    public override void OnCompleted()
    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.OnCompleted()

    OnDestroy()

    Unsubscribes from the monitors, so a destroyed detector receives no more notifications.

    Declaration
    protected virtual void OnDestroy()

    OnError(Exception)

    Called when an observed subject reports an error.

    Declaration
    public override void OnError(Exception _Error)
    Parameters
    Type Name Description
    Exception _Error

    The error reported by the observed subject.

    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.OnError(Exception)

    OnNext(IWatchedSubject)

    Applies monitor notifications. A deviation is reported only while the detector is active.

    Declaration
    public override void OnNext(IWatchedSubject _Subject)
    Parameters
    Type Name Description
    IWatchedSubject _Subject

    The status published by a device time monitor.

    Overrides
    GUPS.AntiCheat.Detector.ADetector<GUPS.AntiCheat.Detector.ICheatingDetectionStatus>.OnNext(IWatchedSubject)

    Implements

    IDetector<>

    See Also

    AntiCheatMonitor
    In This Article
    Back to top GuardingPearSoftware documentation