IEvent.cs 257 B

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