Most basic event action manager.
5 using System.Collections.Generic;
7 using System.Reflection;
8 using System.Runtime.Serialization;
10 namespace SharpLib.Ear
13 public class EventActionManager
15 public static EventActionManager Current = null;
16 public IDictionary<string, Type> ActionTypes;
17 private IDictionary<string, Event> Events;
19 public EventActionManager()
21 ActionTypes = Utils.Reflection.GetConcreteClassesDerivedFromByName<Action>();
22 Events = Utils.Reflection.GetConcreteClassesInstanceDerivedFromByName<Event>();
25 public Event GetEvent<T>() where T : class
27 return Events[typeof(T).Name];