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

In memory powerup is only able to register a single item. #161

Open
perkinslr opened this issue Apr 11, 2022 · 0 comments
Open

In memory powerup is only able to register a single item. #161

perkinslr opened this issue Apr 11, 2022 · 0 comments

Comments

@perkinslr
Copy link

The Empowered._inMemoryPowerups is a dictionary mapping interfaces to objects, rather than mapping to a list (or some other collection) of objects. This means only the last registered item is kept, any previous in-memory-powerup is silently discarded.

Ideally, a list of objects should be supported, but failing that, the old object should be powered down first, or an exception should be thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant