IEvent.cs 250 B

1234567891011121314151617181920
  1. using System;
  2. namespace ET
  3. {
  4. public interface IEvent
  5. {
  6. Type GetEventType();
  7. }
  8. public abstract class AEvent<A>: IEvent where A: struct
  9. {
  10. public Type GetEventType()
  11. {
  12. return typeof (A);
  13. }
  14. public abstract ETTask Run(A a);
  15. }
  16. }