Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild event system #177

Closed
ymh199478 opened this issue Jan 22, 2019 · 0 comments
Closed

Rebuild event system #177

ymh199478 opened this issue Jan 22, 2019 · 0 comments
Labels

Comments

@ymh199478
Copy link
Contributor

ymh199478 commented Jan 22, 2019

  • Event system needs to ensure good performance
  • The syntax of the event system needs to be friendly and readable

Maybe use EventArgs as the base class and event type as the default event name would be better.

On<T>(this IDispatcher dispatcher, Action<T> listener) where T : EventArgs; 
On(string eventName, Action<EventArgs> listener);
eventSystem.On<ApplicationTerminatedEvents>(OnTerminated);
private void OnTerminated(ApplicationTerminatedEvents @event)
{
}
@ymh199478 ymh199478 added the 2.0 label Jan 22, 2019
@ymh199478 ymh199478 mentioned this issue Feb 2, 2019
55 tasks
@ymh199478 ymh199478 changed the title 事件系统重构 Rebuild event system Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant