IEvent.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. namespace Hotfix
  2. {
  3. #if ILRuntime
  4. public interface IEvent
  5. {
  6. void Run();
  7. }
  8. public interface IEvent<in A>
  9. {
  10. void Run(A uid);
  11. }
  12. public interface IEvent<in A, in B>
  13. {
  14. void Run(A a, B b);
  15. }
  16. public interface IEvent<in A, in B, in C>
  17. {
  18. void Run(A a, B b, C c);
  19. }
  20. public interface IEvent<in A, in B, in C, in D>
  21. {
  22. void Run(A a, B b, C c, D d);
  23. }
  24. public interface IEvent<in A, in B, in C, in D, in E>
  25. {
  26. void Run(A a, B b, C c, D d, E e);
  27. }
  28. public interface IEvent<in A, in B, in C, in D, in E, in F>
  29. {
  30. void Run(A a, B b, C c, D d, E e, F f);
  31. }
  32. #else
  33. public interface IEvent : Model.IEvent
  34. {
  35. }
  36. public interface IEvent<in A> : Model.IEvent<A>
  37. {
  38. }
  39. public interface IEvent<in A, in B> : Model.IEvent<A, B>
  40. {
  41. }
  42. public interface IEvent<in A, in B, in C> : Model.IEvent<A, B, C>
  43. {
  44. }
  45. public interface IEvent<in A, in B, in C, in D> : Model.IEvent<A, B, C, D>
  46. {
  47. }
  48. public interface IEvent<in A, in B, in C, in D, in E> : Model.IEvent<A, B, C, D, E>
  49. {
  50. }
  51. public interface IEvent<in A, in B, in C, in D, in E, in F> : Model.IEvent<A, B, C, D, E, F>
  52. {
  53. }
  54. #endif
  55. }