/// <summary> /// Removes a OnNotDetectedDelegate /// See docs for AddOnNotDetectedDelegate() /// </summary> /// <param name="del"></param> public void RemoveOnNotDetectedDelegate(OnNotDetectedDelegate del) { this.onNotDetectedDelegates -= del; }
/// <summary> /// Add a new delegate to be triggered when a target is dropped by a perimieter for /// any reason; leaves or is removed. /// The delegate signature is: delegate(TargetTracker source) /// See TargetTracker documentation for usage of the provided 'source' /// </summary> /// <param name="del"></param> public void AddOnNotDetectedDelegate(OnNotDetectedDelegate del) { this.onNotDetectedDelegates += del; }
/// <summary> /// This replaces all older delegates rather than adding a new one to the list. /// See docs for AddOnNotDetectedDelegate() /// </summary> /// <param name="del"></param> public void SetOnNotDetectedDelegate(OnNotDetectedDelegate del) { this.onNotDetectedDelegates = del; }
internal protected OnNotDetectedDelegate onNotDetectedDelegates; // Executed by Area /// <summary> /// Add a new delegate to be triggered when a target is first found by an Area. /// The delegate signature is: bool delegate(TargetTracker source, Target target) /// Return true to have no effect on the TargetTracker functioning /// Return false to cause the TargetTracker to ignore the new target entirely. /// **This will only allow a delegate to be added once.** /// </summary> /// <param name="del"></param> public void AddOnNotDetectedDelegate(OnNotDetectedDelegate del) { this.onNotDetectedDelegates -= del; // Cheap way to ensure unique (add only once) this.onNotDetectedDelegates += del; }
/// <summary> /// Add a new delegate to be triggered when a target is dropped by a perimieter for /// any reason; leaves or is removed. /// The delegate signature is: delegate(TargetTracker source) /// See TargetTracker documentation for usage of the provided 'source' /// **This will only allow a delegate to be added once.** /// </summary> /// <param name="del"></param> public void AddOnNotDetectedDelegate(OnNotDetectedDelegate del) { this.onNotDetectedDelegates -= del; // Cheap way to ensure unique (add only once) this.onNotDetectedDelegates += del; }