Skip to content

add onAdded/onRemoved? #3152

Open
Open
@Geokureli

Description

@Geokureli

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions