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

Add support for Action<TArg> type listeners #10

Closed
2 tasks done
Edvinas01 opened this issue Oct 5, 2021 · 0 comments
Closed
2 tasks done

Add support for Action<TArg> type listeners #10

Edvinas01 opened this issue Oct 5, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Edvinas01
Copy link
Member

Edvinas01 commented Oct 5, 2021

Currently to use a custom listener you have to use a listener component or implement the IScriptableEventListener<TArg> interface. In most cases using a component is enough, however it would also be handy to have the ability to add listeners of type Action, which would allow to supply regular methods.

One thing to keep in mind is that adding this functionality will harm the traceability (the list of listeners on asset).

TODOs:

  • Add support for Action<TArg>
  • Update documentation
@Edvinas01 Edvinas01 added the enhancement New feature or request label Oct 5, 2021
@Edvinas01 Edvinas01 changed the title Add support for Action Add support for Action type listeners Oct 5, 2021
@Edvinas01 Edvinas01 changed the title Add support for Action type listeners Add support for Action<TArg> type listeners Oct 5, 2021
@Edvinas01 Edvinas01 added this to the v2.1.0 milestone Oct 5, 2021
@Edvinas01 Edvinas01 mentioned this issue Nov 24, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant