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 onAdded/onRemoved? #3152

Open
Geokureli opened this issue May 28, 2024 · 0 comments
Open

add onAdded/onRemoved? #3152

Geokureli opened this issue May 28, 2024 · 0 comments

Comments

@Geokureli
Copy link
Member

Geokureli commented May 28, 2024

A signal (maybe typed) called when a FlxBasic's container is changed

Downsides

This can get kinda hairy with adding/removing destroyed things, some options:

  • Make these signals final onAdded = new FlxSignal(); and only clear it in destroy
  • Don't use a signal just have a function setContainer(value) { container = value; } that can be extended. Note: i'm not really into haxe's setters for this case. for reasons I'll list, upon request
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

1 participant