[Entitas:] Find alternative to pool.CreateSystem()
See original GitHub issuePoolExtension.cs contains the convenience methods pool(s).CreateSystem()
3 things:
- CreateSystem is still the old method name from older versions, where this method actually created a system. It doesn’t anymore, instead we pass in a created system so the name is wrong.
- It might sound misleading, because it sounds like the pool ‘owns’ the system (which it doesn’t)
- This:
return new Feature("Systems")
.Add(pools.CreateSystem(new IncrementTickSystem()))
...
.Add(pools.core.CreateSystem(new AddViewSystem()))
Sometimes we use pools.CreateSystem(), sometimes pools.core.CreateSystem(). Would be great to streamline this.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Right approach for Unit Testing [Question] · Issue #128
I was wondering, how do i approach Unit Test with Entitas the right way? Are there important things i should pay attention?
Read more >startkit/Entitas-CSharp
Improved Entitas Event API [Event(bool)] #717 Use "find and replace" to update all ... CreateSystem() not creating a ReactiveSystem for IGroupObserverSystem ...
Read more >ECS architecture with Unity by example - Unite Europe 2016
Simon Schmid (Wooga) and Maxim Zaks explain how the introduction of strict ECS architecture in Unity helped them to achieve easy to test, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

What about sth like this
Bind(or a different term? Suggestions?)) actually does the same thing asCreateSystem. If a system implementsISetPoolsthen pass pools in, if it implementsISetPoolthen pass the pool in, if it doesn’t implement either, do nothing (same behaviour as it is right now).This might be less confusing and more explicit. Sounds more like we’re using this system with the specified pool
It’s the end of the year and a good time to clean up a little bit 😉
I updated
IReactiveSystemThis change enabled me to get rid of loooots of code . It’s a breaking change but I hope the result is less confusion and less code to maintain.
I deleted:
… without loosing any features. The new
IReactiveSystemcan do the same asIMultiReactiveSystemandIEntityCollectorSystemAdding systems to the list is more streamlined and less code