Skip to content

Allow outside access of systems in SystemManager #12

@5Mixer

Description

@5Mixer

So the topic of this issue is really more of just a potential solution to the problem I'm having. Basically, my systems have both a render method and an update method. This render method in each system needs to have access to Kha's graphics API. Obviously, baking this into a generic library like eskimo would be a bad idea.

SystemManager.update is not a complex function, and a rendering equivalent could be just as light. However, it of course needs to loop through the systems variable, which is private.

A simple solution might be just overriding SystemManager. This brings me to my second point, that the System class of course doesn't have a render method. How would you go about this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions