Replies: 1 comment 1 reply
-
|
At least using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I want to try and access the entire world through its ReadComponent interface via a callback.
My plan was to attach a InputHandler to my entity and with a list of triggers. should the input system see a trigger as pressed, it should call a generic callback that does whatever the callback wants to do.
By design this means I cant tell from the get go what components are needed inside the callback.
Giving the system an Arc is also not in the cards as far as I can tell since I need the &mut World after the system has been instanciated.
Any idea how I can achieve this? or is this too much against the nature of an ECS?
Beta Was this translation helpful? Give feedback.
All reactions