Skip to content

I register object in parent class but subscribe events in child class, yet it still works why? #487

@lazercorn

Description

@lazercorn

So this is exactly how I want it to work but I'm just confused on why it works. I register the object in parent class but subscribe events in child class.

By registering the object in the parent class, wouldn't EventBus be seeing type parent class(only events subscribed in parent class)?

If that's the case, how is it able to see the events that are subscribed in child class then?

If someone can clarify this that would be awesome thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions