Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sebas77 75550701a8 improve EntitySubmissionScheduler code 6 years ago
..
DataStructures Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago
Dispatcher revert dispatchonset not wise change 6 years ago
Extensions/Unity improve EntitySubmissionScheduler code 6 years ago
Profiler Now it's mandatory to specify the group in all the functions, I will write an article about why this makes the code much better 6 years ago
.gitignore working on a better folder structure 6 years ago
DynamicEntityDescriptorInfo.cs Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago
ECSException.cs Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago
EGID.cs improve EGID structure 6 years ago
EGIDMapper.cs introduced deffered actions for Remove and Swap entity, they now happen during the submission and not right away. This imply a radical change of the current application made with Svelto 6 years ago
EnginesRoot.DoubleBufferedEntityViews.cs fix bugs that may have caused leaks 6 years ago
EnginesRoot.Engines.cs improve EntitySubmissionScheduler code 6 years ago
EnginesRoot.Entities.cs improve EntitySubmissionScheduler code 6 years ago
EnginesRoot.GenericEntityFactory.cs fix bugs that may have caused leaks 6 years ago
EnginesRoot.GenericEntityFunctions.cs improve errro reporting 6 years ago
EnginesRoot.Submission.cs improve EntitySubmissionScheduler code 6 years ago
EntitiesDB.cs introduced deffered actions for Remove and Swap entity, they now happen during the submission and not right away. This imply a radical change of the current application made with Svelto 6 years ago
EntitiesDBException.cs Experiment with safe ExecuteOnEntities (it protects from fatal mistakes and database misues) and ExecuteOnEntities with multiple entity views 6 years ago
EntityBuilder.cs improve EntitySubmissionScheduler code 6 years ago
EntityFactory.cs Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago
EntitySubmissionScheduler.cs improve EntitySubmissionScheduler code 6 years ago
EntitySubmitOperation.cs improve EntitySubmissionScheduler code 6 years ago
EntityView.cs improving class names 6 years ago
EntityViewUtility.cs fix bugs that may have caused leaks 6 years ago
ExclusiveGroups.cs Now it's mandatory to specify the group in all the functions, I will write an article about why this makes the code much better 6 years ago
ExecuteOnEntitiesDB.cs remove wrong signatures 6 years ago
GenericEntityDescriptor.cs Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago
IEngine.cs working on use just one data structure, still WIP and a lot of work to do 6 years ago
IEntitiesDB.cs fix bugs that may have caused leaks 6 years ago
IEntityBuilder.cs Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago
IEntityDescriptorHolder.cs Swap and Remove entity now needs the entity descriptor 6 years ago
IEntityFactory.cs fix bugs that may have caused leaks 6 years ago
IEntityFunctions.cs Remove SwapFirstEntityGroup, it may have created misunderstanding and it's not strictly needed. 6 years ago
IEntityStruct.cs improving class names 6 years ago
IEntityViewStruct.cs improving class names 6 years ago
IQueryingEntitiesEngine.cs still better names 6 years ago
LICENSE working on a better folder structure 6 years ago
MultiEntitiesEngine.cs rename IEntityData into IEntityStruct, it's not necessary to add confusion with more names 6 years ago
MultiEntityViewsEngine.cs rename IEntityData into IEntityStruct, it's not necessary to add confusion with more names 6 years ago
README.md Merge remote-tracking branch 'remotes/origin/alpha' 6 years ago
Sequencer.cs fix bugs that may have caused leaks 6 years ago
SimpleSubmissionEntityViewScheduler.cs improve EntitySubmissionScheduler code 6 years ago
SingleEntityEngine.cs rename IEntityData into IEntityStruct, it's not necessary to add confusion with more names 6 years ago
SingleEntityViewEngine.cs rename IEntityData into IEntityStruct, it's not necessary to add confusion with more names 6 years ago
StaticEntityDescriptorInfo.cs Fix DynamicEntityDescriptor based entities, now they can be removed and swapped again 6 years ago

README.md

Svelto Entity Component System for Unity

Note: The alpha stage of Svelto 2.0 is almost completed, so if you are here to experiment with it, please use the current alpha branch

Real Entity-Component-System for c# and Unity (it can be adapted for other c# platforms too). Enables to write encapsulated, uncoupled, highly efficient, data oriented, cache friendly, multi-threaded, code without pain.

you can find working examples to learn how to use the framework here:

https://github.com/sebas77/Svelto-ECS-Example (unity)

https://github.com/sebas77/Svelto.ECS.Vanilla.Example (.net core and standard)

I advise to clone the example repositories separately from the framework one, both under the same Unity project Assets folder.

relative article:

http://www.sebaslab.com/svelto-ecs-2-0-almost-production-ready/

http://www.sebaslab.com/ecs-1-0/

If you want to know more about the theory and rationale behind this framework:

http://www.sebaslab.com/ioc-container-for-unity3d-part-1/

http://www.sebaslab.com/ioc-container-for-unity3d-part-2/

http://www.sebaslab.com/the-truth-behind-inversion-of-control-part-i-dependency-injection/

http://www.sebaslab.com/the-truth-behind-inversion-of-control-part-ii-inversion-of-control/

http://www.sebaslab.com/the-truth-behind-inversion-of-control-part-iii-entity-component-systems/

http://www.sebaslab.com/the-truth-behind-inversion-of-control-part-iv-dependency-inversion-principle/

http://www.sebaslab.com/the-truth-behind-inversion-of-control-part-v-drifting-away-from-ioc-containers/

new article on optimizations:

http://www.sebaslab.com/svelto-ecs-svelto-tasks-to-write-data-oriented-cache-friendly-multi-threaded-code-in-unity/

Note: if you ever build something with Svelto.ECS that you can share with the community, please do and let me know. Other coders need more examples.

Copyright (c) Sebastiano Mandalà

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.