• Hello
Search Results for

    Show / Hide Table of Contents

    Class ADetector

    Abstract base for detectors that watch for possible cheating and publish detections to their observers.

    Inheritance
    System.Object
    ADetector
    AndroidDeviceCheatingDetector
    AndroidPackageTamperingDetector
    DebuggerDetector
    ModLoaderDetector
    VirtualEnvironmentDetector
    DeviceTimeCheatingDetector
    GameTimeCheatingDetector
    MobileGenuineDetector
    PrimitiveCheatingDetector
    Implements
    IDetector
    Namespace: GUPS.AntiCheat.Detector
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class ADetector : MonoBehaviour
    Remarks

    Implements and provides a default observer list, subscribe / notify plumbing and a platform support check in Awake().

    Properties

    IsActive

    Gets or sets a value indicating whether the detector is active and watching for possible cheating.

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

    IsSupported

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

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

    Name

    Gets the human-readable name of the detector.

    Declaration
    public abstract String Name { get; }
    Property Value
    Type Description
    String

    PossibleCheatingDetected

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

    Declaration
    public abstract bool PossibleCheatingDetected { get; protected set; }
    Property Value
    Type Description
    System.Boolean

    ThreatRating

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

    Declaration
    public abstract uint ThreatRating { get; protected set; }
    Property Value
    Type Description
    System.UInt32

    Methods

    Awake()

    Disables the detector when IsSupported is false on the current platform.

    Declaration
    protected virtual void Awake()

    Dispose()

    Notifies every subscribed observer that the detector has completed and clears the observer list.

    Declaration
    public void Dispose()

    Notify(IDetectorStatus)

    Notifies every subscribed observer of the given detection status.

    Declaration
    public void Notify(IDetectorStatus _Subject)
    Parameters
    Type Name Description
    IDetectorStatus _Subject

    The detection status to broadcast.

    OnCompleted()

    Called when an observed subject signals completion.

    Declaration
    public abstract void OnCompleted()

    OnError(Exception)

    Called when an observed subject reports an error.

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

    The error reported by the observed subject.

    OnNext(IWatchedSubject)

    Called when an observed subject publishes a new status.

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

    The status published by the observed subject.

    Subscribe(IObserver<IDetectorStatus>)

    Subscribes an observer to receive future detection notifications.

    Declaration
    public IDisposable Subscribe(IObserver<IDetectorStatus> _Observer)
    Parameters
    Type Name Description
    IObserver<IDetectorStatus> _Observer

    The observer to subscribe.

    Returns
    Type Description
    IDisposable

    An that unsubscribes the observer when disposed.

    Implements

    IDetector

    See Also

    AntiCheatMonitor
    PrimitiveCheatingDetector
    In This Article
    Back to top GuardingPearSoftware documentation