EventCheckPredicate.cs 693 B

123456789101112131415
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Wayne.Lib.StateEngine
  5. {
  6. /// <summary>
  7. /// Delegate that is used to match StateEngine events.
  8. /// </summary>
  9. /// <typeparam name="TCompareObject">Type of the input parameter</typeparam>
  10. /// <param name="stateEngineEvent">The event that should be evaluated</param>
  11. /// <param name="compareObject">The object that should be used in the comparison.</param>
  12. /// <returns>True if the stateengineevent matches the predicate, otherwise false.</returns>
  13. public delegate bool StateEngineEventPredicate<TCompareObject>(StateEngineEvent stateEngineEvent, TCompareObject compareObject);
  14. }