Class ACTkDetectorBase<T>
Base class for all detectors.
[AddComponentMenu("")]
public abstract class ACTkDetectorBase<T> : KeepAliveBehaviour<T> where T : ACTkDetectorBase<T>
Type Parameters
T
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourACTkDetectorBase<T>
- Derived
- Inherited Members
Fields
autoDispose
Detector component will be automatically disposed after firing callback if enabled. Otherwise, it will just stop internal processes.
[Tooltip("Automatically dispose Detector after firing callback.")]
public bool autoDispose
Field Value
- bool
autoStart
Allows to start detector automatically. Otherwise, you'll need to call StartDetection() method to start it.
[Tooltip("Automatically start detector. Detection Event will be called on detection.")]
public bool autoStart
Field Value
- bool
Remarks
Useful in conjunction with proper Detection Event configuration in the inspector. Allows to use detector without writing any code except the actual reaction on cheating.
Properties
IsCheatDetected
Indicates if cheat was detected by this detector.
public bool IsCheatDetected { get; }
Property Value
- bool
IsRunning
Allows to check if detection is currently running and not paused.
public bool IsRunning { get; }
Property Value
- bool
IsStarted
Allows to check if detector is started (stays true even when it's paused).
public bool IsStarted { get; }
Property Value
- bool
LastDetectionInfoAbstract
Holds detailed information about the latest detection, if any.
protected ICheatDetectionInfo LastDetectionInfoAbstract { get; }
Property Value
Remarks
This property is reset when detection starts and is set when a cheat is detected. The information remains available even after the detector stops, allowing you to inspect what exactly triggered the detection (e.g., which timer source, which module, etc.).
Events
CheatDetected
Subscribe to this event to get notified when cheat will be detected.
public event Action CheatDetected
Event Type
- Action