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

[FEATURE REQUEST] Custom events #170

Open
natrim opened this issue Apr 22, 2014 · 3 comments
Open

[FEATURE REQUEST] Custom events #170

natrim opened this issue Apr 22, 2014 · 3 comments

Comments

@natrim
Copy link
Contributor

natrim commented Apr 22, 2014

It would be nice to have custom user events, that would trigger some functions.

global variant and user variant

global variant triggers everyones EA, if they have convar enabled to trigger custom global events and have subscribed to the event

  • useful for games

user variant triggers users EA which have subscribed to the event

  • useful for EA controllers and GUIs
@Rusketh
Copy link
Member

Rusketh commented Apr 23, 2014

I would have to create a new directive that would allow the compiler to know about the event, something along the lines of:

@event: myEvent( int, int, string )

event myEvent( int A, int B, string C ) { }

@ghost
Copy link

ghost commented Apr 23, 2014

I think @ bit too used but that's just cosmetic. otherways sounds good. c:

@h3xcat
Copy link
Contributor

h3xcat commented Apr 29, 2014

@ defines preprocessor directives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants