/// <summary> /// This replaces all older delegates rather than adding a new one to the list. /// See docs for AddOnPreFireDelegate() /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void SetOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates = del; }
/// <summary> /// Runs just before any OnFire target checks to allow custom target list /// manipulation and other pre-fire logic. /// The delegate signature is: delegate(TargetList targets) /// See TargetTracker documentation for usage of the provided '...' /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void AddOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates += del; }
/// <summary> /// Removes a OnPostSortDelegate /// See docs for AddOnPreFireDelegate() /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void RemoveOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates -= del; }
/// <summary> /// Removes a OnPostSortDelegate /// See docs for AddOnPreFireDelegate() /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void RemoveOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates -= del; }
/// <summary> /// This replaces all older delegates rather than adding a new one to the list. /// See docs for AddOnPreFireDelegate() /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void SetOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates = del; }
/// <summary> /// Runs just before any OnFire target checks to allow custom target list /// manipulation and other pre-fire logic. /// The delegate signature is: delegate(TargetList targets) /// See TargetTracker documentation for usage of the provided '...' /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void AddOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates += del; }
/// <summary> /// Runs just before any OnFire target checks to allow custom target list /// manipulation and other pre-fire logic. /// The delegate signature is: delegate(TargetList targets) /// See TargetTracker documentation for usage of the provided '...' /// **This will only allow a delegate to be added once.** /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void AddOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates -= del; // Cheap way to ensure unique (add only once) this.onPreFireDelegates += del; }
/// <summary> /// Runs just before any OnFire target checks to allow custom target list /// manipulation and other pre-fire logic. /// The delegate signature is: delegate(TargetList targets) /// See TargetTracker documentation for usage of the provided '...' /// **This will only allow a delegate to be added once.** /// </summary> /// <param name="del">An OnPreFireDelegate</param> public void AddOnPreFireDelegate(OnPreFireDelegate del) { this.onPreFireDelegates -= del; // Cheap way to ensure unique (add only once) this.onPreFireDelegates += del; }