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

Hook Bindings #7

Open
Vurv78 opened this issue May 15, 2021 · 0 comments
Open

Hook Bindings #7

Vurv78 opened this issue May 15, 2021 · 0 comments
Labels
enhancement New feature or request generator This has to do with the generator branch.

Comments

@Vurv78
Copy link
Owner

Vurv78 commented May 15, 2021

Would be cool if we could make hooks like

@:hook("Tick")
function tick() {
	Sys.println("Hi");
}

or

@Event("Tick")
function tick() {
	trace("Hi");
}

Similar to how it works in S&Box right now

I'm not to the point in Haxe skill where I could easily get it to use the hook's arguments in these events but it'd be easy syntax sugar for hook.add(...)

@Vurv78 Vurv78 added enhancement New feature or request generator This has to do with the generator branch. labels May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request generator This has to do with the generator branch.
Projects
None yet
Development

No branches or pull requests

1 participant