12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- namespace Blue
- {
-
-
-
- public struct EventToActionAdapter
- {
- private Action<IEvent> mAdapterAction;
- private int mHashCode;
-
-
-
-
-
- public EventToActionAdapter(int hashCode,Action<IEvent> adapterAction)
- {
- mHashCode = hashCode;
- mAdapterAction = adapterAction;
- }
-
-
-
-
- public Action<IEvent> GetAdapterAction()
- {
- return mAdapterAction;
- }
-
-
-
-
- public int GetActionHashCode()
- {
- return mHashCode;
- }
-
-
-
- public void Clear()
- {
- mAdapterAction = null;
- }
- }
- }
|