1.1 --- a/SharpLibEar/EventActionManager.cs Sat Jul 23 19:22:56 2016 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,31 +0,0 @@
1.4 -//
1.5 -
1.6 -
1.7 -using System;
1.8 -using System.Collections.Generic;
1.9 -using System.Linq;
1.10 -using System.Reflection;
1.11 -using System.Runtime.Serialization;
1.12 -
1.13 -namespace SharpLib.Ear
1.14 -{
1.15 - [DataContract]
1.16 - public class EventActionManager
1.17 - {
1.18 - public static EventActionManager Current = null;
1.19 - public IDictionary<string, Type> ActionTypes;
1.20 - public readonly IDictionary<string, Event> Events;
1.21 -
1.22 - public EventActionManager()
1.23 - {
1.24 - ActionTypes = Utils.Reflection.GetConcreteClassesDerivedFromByName<Action>();
1.25 - Events = Utils.Reflection.GetConcreteClassesInstanceDerivedFromByName<Event>();
1.26 - }
1.27 -
1.28 - public Event GetEvent<T>() where T : class
1.29 - {
1.30 - return Events[typeof(T).Name];
1.31 - }
1.32 -
1.33 - }
1.34 -}
1.35 \ No newline at end of file