Replies: 1 comment
-
Hi, Unfortunately there isn't a svelto manual, so you must not miss the chance to learn new things reading all the articles and resources linked to Svelto as described in the wiki: https://github.com/sebas77/Svelto.ECS/wiki This article specifically will give a definition of GroupCompound: https://www.sebaslab.com/whats-new-in-svelto-ecs-3-0/ Once you have a Group compound defined like:
you can have IReactOnSwapEx callback like:
you can see this logic being used in the MiniExample Survival, but very likely Doofuses has similar reasoning too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the reactive interfaces for engines (IReactOnAddEx, IReactOnSwapEx etc) is it possible to react for a entity descriptor? In the system I want to react for the Descripted entity type (that contains multiple components), but interface accepts only Components as generics and not Descriptors.
@sebas77 recommended using group compounds but can you please give an example for it? Thanks
Beta Was this translation helpful? Give feedback.
All reactions