diff -r 6ba20e02d04f -r 1a1c2ae3a29c SharpLibEar/Manager.cs
--- a/SharpLibEar/Manager.cs Wed Aug 17 13:41:26 2016 +0200
+++ b/SharpLibEar/Manager.cs Wed Aug 17 16:39:36 2016 +0200
@@ -57,6 +57,19 @@
}
}
+ ///
+ /// Trigger the given event.
+ ///
+ ///
+ public void TriggerEvent(T aEvent) where T : class
+ {
+ //Only trigger events matching the desired type
+ foreach (Event e in Events.Where(e => e.Equals(aEvent) && e.Enabled))
+ {
+ e.Trigger();
+ }
+ }
+
///
/// Remove the specified action from the event it belongs too.