Skip to content

Commit

Permalink
Merge pull request #32 from TORISOUP/implements_eventsystem_interfaces
Browse files Browse the repository at this point in the history
Implements EventSystem interfaces.
  • Loading branch information
neuecc authored Aug 16, 2019
2 parents 10ba7bc + 0891310 commit 1a2dfd1
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncBeginDragTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncBeginDragTrigger : AsyncTriggerBase
public class AsyncBeginDragTrigger : AsyncTriggerBase, IBeginDragHandler
{
AsyncTriggerPromise<PointerEventData> onBeginDrag;
AsyncTriggerPromiseDictionary<PointerEventData> onBeginDrags;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnBeginDrag(PointerEventData eventData)
void IBeginDragHandler.OnBeginDrag(PointerEventData eventData)
{
TrySetResult(onBeginDrag, onBeginDrags, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncCancelTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncCancelTrigger : AsyncTriggerBase
public class AsyncCancelTrigger : AsyncTriggerBase, ICancelHandler
{
AsyncTriggerPromise<BaseEventData> onCancel;
AsyncTriggerPromiseDictionary<BaseEventData> onCancels;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnCancel(BaseEventData eventData)
void ICancelHandler.OnCancel(BaseEventData eventData)
{
TrySetResult(onCancel, onCancels, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncDeselectTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncDeselectTrigger : AsyncTriggerBase
public class AsyncDeselectTrigger : AsyncTriggerBase, IDeselectHandler
{
AsyncTriggerPromise<BaseEventData> onDeselect;
AsyncTriggerPromiseDictionary<BaseEventData> onDeselects;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnDeselect(BaseEventData eventData)
void IDeselectHandler.OnDeselect(BaseEventData eventData)
{
TrySetResult(onDeselect, onDeselects, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncDragTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncDragTrigger : AsyncTriggerBase
public class AsyncDragTrigger : AsyncTriggerBase, IDragHandler
{
AsyncTriggerPromise<PointerEventData> onDrag;
AsyncTriggerPromiseDictionary<PointerEventData> onDrags;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnDrag(PointerEventData eventData)
void IDragHandler.OnDrag(PointerEventData eventData)
{
TrySetResult(onDrag, onDrags, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncDropTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncDropTrigger : AsyncTriggerBase
public class AsyncDropTrigger : AsyncTriggerBase, IDropHandler
{
AsyncTriggerPromise<PointerEventData> onDrop;
AsyncTriggerPromiseDictionary<PointerEventData> onDrops;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnDrop(PointerEventData eventData)
void IDropHandler.OnDrop(PointerEventData eventData)
{
TrySetResult(onDrop, onDrops, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncEndDragTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncEndDragTrigger : AsyncTriggerBase
public class AsyncEndDragTrigger : AsyncTriggerBase, IEndDragHandler
{
AsyncTriggerPromise<PointerEventData> onEndDrag;
AsyncTriggerPromiseDictionary<PointerEventData> onEndDrags;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnEndDrag(PointerEventData eventData)
void IEndDragHandler.OnEndDrag(PointerEventData eventData)
{
TrySetResult(onEndDrag, onEndDrags, eventData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncInitializePotentialDragTrigger : AsyncTriggerBase
public class AsyncInitializePotentialDragTrigger : AsyncTriggerBase, IInitializePotentialDragHandler
{
AsyncTriggerPromise<PointerEventData> onInitializePotentialDrag;
AsyncTriggerPromiseDictionary<PointerEventData> onInitializePotentialDrags;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnInitializePotentialDrag(PointerEventData eventData)
void IInitializePotentialDragHandler.OnInitializePotentialDrag(PointerEventData eventData)
{
TrySetResult(onInitializePotentialDrag, onInitializePotentialDrags, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncMoveTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncMoveTrigger : AsyncTriggerBase
public class AsyncMoveTrigger : AsyncTriggerBase, IMoveHandler
{
AsyncTriggerPromise<AxisEventData> onMove;
AsyncTriggerPromiseDictionary<AxisEventData> onMoves;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnMove(AxisEventData eventData)
void IMoveHandler.OnMove(AxisEventData eventData)
{
TrySetResult(onMove, onMoves, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncPointerClickTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncPointerClickTrigger : AsyncTriggerBase
public class AsyncPointerClickTrigger : AsyncTriggerBase, IPointerClickHandler
{
AsyncTriggerPromise<PointerEventData> onPointerClick;
AsyncTriggerPromiseDictionary<PointerEventData> onPointerClicks;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnPointerClick(PointerEventData eventData)
void IPointerClickHandler.OnPointerClick(PointerEventData eventData)
{
TrySetResult(onPointerClick, onPointerClicks, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncPointerDownTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncPointerDownTrigger : AsyncTriggerBase
public class AsyncPointerDownTrigger : AsyncTriggerBase, IPointerDownHandler
{
AsyncTriggerPromise<PointerEventData> onPointerDown;
AsyncTriggerPromiseDictionary<PointerEventData> onPointerDowns;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnPointerDown(PointerEventData eventData)
void IPointerDownHandler.OnPointerDown(PointerEventData eventData)
{
TrySetResult(onPointerDown, onPointerDowns, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncPointerEnterTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncPointerEnterTrigger : AsyncTriggerBase
public class AsyncPointerEnterTrigger : AsyncTriggerBase, IPointerEnterHandler
{
AsyncTriggerPromise<PointerEventData> onPointerEnter;
AsyncTriggerPromiseDictionary<PointerEventData> onPointerEnters;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnPointerEnter(PointerEventData eventData)
void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData)
{
TrySetResult(onPointerEnter, onPointerEnters, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncPointerExitTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncPointerExitTrigger : AsyncTriggerBase
public class AsyncPointerExitTrigger : AsyncTriggerBase, IPointerExitHandler
{
AsyncTriggerPromise<PointerEventData> onPointerExit;
AsyncTriggerPromiseDictionary<PointerEventData> onPointerExits;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnPointerExit(PointerEventData eventData)
void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
{
TrySetResult(onPointerExit, onPointerExits, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncPointerUpTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncPointerUpTrigger : AsyncTriggerBase
public class AsyncPointerUpTrigger : AsyncTriggerBase, IPointerUpHandler
{
AsyncTriggerPromise<PointerEventData> onPointerUp;
AsyncTriggerPromiseDictionary<PointerEventData> onPointerUps;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnPointerUp(PointerEventData eventData)
void IPointerUpHandler.OnPointerUp(PointerEventData eventData)
{
TrySetResult(onPointerUp, onPointerUps, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncScrollTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncScrollTrigger : AsyncTriggerBase
public class AsyncScrollTrigger : AsyncTriggerBase, IScrollHandler
{
AsyncTriggerPromise<PointerEventData> onScroll;
AsyncTriggerPromiseDictionary<PointerEventData> onScrolls;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnScroll(PointerEventData eventData)
void IScrollHandler.OnScroll(PointerEventData eventData)
{
TrySetResult(onScroll, onScrolls, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncSelectTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncSelectTrigger : AsyncTriggerBase
public class AsyncSelectTrigger : AsyncTriggerBase, ISelectHandler
{
AsyncTriggerPromise<BaseEventData> onSelect;
AsyncTriggerPromiseDictionary<BaseEventData> onSelects;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnSelect(BaseEventData eventData)
void ISelectHandler.OnSelect(BaseEventData eventData)
{
TrySetResult(onSelect, onSelects, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncSubmitTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncSubmitTrigger : AsyncTriggerBase
public class AsyncSubmitTrigger : AsyncTriggerBase, ISubmitHandler
{
AsyncTriggerPromise<BaseEventData> onSubmit;
AsyncTriggerPromiseDictionary<BaseEventData> onSubmits;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnSubmit(BaseEventData eventData)
void ISubmitHandler.OnSubmit(BaseEventData eventData)
{
TrySetResult(onSubmit, onSubmits, eventData);
}
Expand Down
4 changes: 2 additions & 2 deletions Assets/UniRx.Async/Triggers/AsyncUpdateSelectedTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace UniRx.Async.Triggers
{
[DisallowMultipleComponent]
public class AsyncUpdateSelectedTrigger : AsyncTriggerBase
public class AsyncUpdateSelectedTrigger : AsyncTriggerBase, IUpdateSelectedHandler
{
AsyncTriggerPromise<BaseEventData> onUpdateSelected;
AsyncTriggerPromiseDictionary<BaseEventData> onUpdateSelecteds;
Expand All @@ -22,7 +22,7 @@ protected override IEnumerable<ICancelablePromise> GetPromises()
}


void OnUpdateSelected(BaseEventData eventData)
void IUpdateSelectedHandler.OnUpdateSelected(BaseEventData eventData)
{
TrySetResult(onUpdateSelected, onUpdateSelecteds, eventData);
}
Expand Down

0 comments on commit 1a2dfd1

Please sign in to comment.