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 be50b7e8af UPM experiment 5 years ago
.github Update FUNDING.yml 5 years ago
DataStructures UPM experiment 5 years ago
Dispatcher UPM experiment 5 years ago
ECSResources UPM experiment 5 years ago
Extensions UPM experiment 5 years ago
Hybrid UPM experiment 5 years ago
Serialization UPM experiment 5 years ago
.gitignore commit meta files to let UPM work 5 years ago
.gitmodules UPM experiment 5 years ago
AllowMultipleAttribute.cs UPM experiment 5 years ago
AllowMultipleAttribute.cs.meta UPM experiment 5 years ago
CheckEntityUtilities.cs UPM experiment 5 years ago
CheckEntityUtilities.cs.meta UPM experiment 5 years ago
DBC.cs UPM experiment 5 years ago
DBC.cs.meta UPM experiment 5 years ago
DataStructures.meta UPM experiment 5 years ago
Dispatcher.meta UPM experiment 5 years ago
DynamicEntityDescriptor.cs UPM experiment 5 years ago
DynamicEntityDescriptor.cs.meta UPM experiment 5 years ago
ECSException.cs UPM experiment 5 years ago
ECSException.cs.meta UPM experiment 5 years ago
ECSResources.meta UPM experiment 5 years ago
EGID.cs UPM experiment 5 years ago
EGID.cs.meta UPM experiment 5 years ago
EGIDMapper.cs UPM experiment 5 years ago
EGIDMapper.cs.meta UPM experiment 5 years ago
EnginesRoot.DoubleBufferedEntityViews.cs UPM experiment 5 years ago
EnginesRoot.DoubleBufferedEntityViews.cs.meta UPM experiment 5 years ago
EnginesRoot.Engines.cs UPM experiment 5 years ago
EnginesRoot.Engines.cs.meta UPM experiment 5 years ago
EnginesRoot.Entities.cs UPM experiment 5 years ago
EnginesRoot.Entities.cs.meta UPM experiment 5 years ago
EnginesRoot.GenericEntityFactory.cs UPM experiment 5 years ago
EnginesRoot.GenericEntityFactory.cs.meta UPM experiment 5 years ago
EnginesRoot.GenericEntityFunctions.cs UPM experiment 5 years ago
EnginesRoot.GenericEntityFunctions.cs.meta UPM experiment 5 years ago
EnginesRoot.Submission.cs UPM experiment 5 years ago
EnginesRoot.Submission.cs.meta UPM experiment 5 years ago
EntitiesDB.cs UPM experiment 5 years ago
EntitiesDB.cs.meta UPM experiment 5 years ago
EntityBuilder.CheckFields.cs UPM experiment 5 years ago
EntityBuilder.CheckFields.cs.meta UPM experiment 5 years ago
EntityBuilder.cs UPM experiment 5 years ago
EntityBuilder.cs.meta UPM experiment 5 years ago
EntityBuilder.cs.rej UPM experiment 5 years ago
EntityBuilder.cs.rej.meta UPM experiment 5 years ago
EntityCollection.cs UPM experiment 5 years ago
EntityCollection.cs.meta UPM experiment 5 years ago
EntityDescriptorTemplate.cs UPM experiment 5 years ago
EntityDescriptorTemplate.cs.meta UPM experiment 5 years ago
EntityFactory.cs UPM experiment 5 years ago
EntityFactory.cs.meta UPM experiment 5 years ago
EntityGroupNotFoundException.cs UPM experiment 5 years ago
EntityGroupNotFoundException.cs.meta UPM experiment 5 years ago
EntityHierarchyStruct.cs UPM experiment 5 years ago
EntityHierarchyStruct.cs.meta UPM experiment 5 years ago
EntityInfoView.cs UPM experiment 5 years ago
EntityInfoView.cs.meta UPM experiment 5 years ago
EntityNotFoundException.cs UPM experiment 5 years ago
EntityNotFoundException.cs.meta UPM experiment 5 years ago
EntityStream.cs UPM experiment 5 years ago
EntityStream.cs.meta UPM experiment 5 years ago
EntityStructInitializer.cs UPM experiment 5 years ago
EntityStructInitializer.cs.meta UPM experiment 5 years ago
EntitySubmissionScheduler.cs UPM experiment 5 years ago
EntitySubmissionScheduler.cs.meta UPM experiment 5 years ago
EntitySubmitOperation.cs UPM experiment 5 years ago
EntitySubmitOperation.cs.meta UPM experiment 5 years ago
EntityViewUtility.cs UPM experiment 5 years ago
EntityViewUtility.cs.meta UPM experiment 5 years ago
ExclusiveGroup.cs UPM experiment 5 years ago
ExclusiveGroup.cs.meta UPM experiment 5 years ago
ExecuteOnEntitiesDB.cs UPM experiment 5 years ago
ExecuteOnEntitiesDB.cs.meta UPM experiment 5 years ago
ExtendibleEntityDescriptor.cs UPM experiment 5 years ago
ExtendibleEntityDescriptor.cs.meta UPM experiment 5 years ago
Extensions.meta UPM experiment 5 years ago
GenericEntityDescriptor.cs UPM experiment 5 years ago
GenericEntityDescriptor.cs.meta UPM experiment 5 years ago
GenericentityStreamConsumerFactory.cs UPM experiment 5 years ago
GenericentityStreamConsumerFactory.cs.meta UPM experiment 5 years ago
Hybrid.meta UPM experiment 5 years ago
IEngine.cs UPM experiment 5 years ago
IEngine.cs.meta UPM experiment 5 years ago
IEntitiesDB.cs UPM experiment 5 years ago
IEntitiesDB.cs.meta UPM experiment 5 years ago
IEntityBuilder.cs UPM experiment 5 years ago
IEntityBuilder.cs.meta UPM experiment 5 years ago
IEntityDescriptorHolder.cs UPM experiment 5 years ago
IEntityDescriptorHolder.cs.meta UPM experiment 5 years ago
IEntityFactory.cs UPM experiment 5 years ago
IEntityFactory.cs.meta UPM experiment 5 years ago
IEntityFunctions.cs UPM experiment 5 years ago
IEntityFunctions.cs.meta UPM experiment 5 years ago
IEntityStruct.cs UPM experiment 5 years ago
IEntityStruct.cs.meta UPM experiment 5 years ago
IQueryingEntitiesEngine.cs UPM experiment 5 years ago
IQueryingEntitiesEngine.cs.meta UPM experiment 5 years ago
IReactOnAddAndRemove.cs UPM experiment 5 years ago
IReactOnAddAndRemove.cs.meta UPM experiment 5 years ago
IReactOnSwap.cs UPM experiment 5 years ago
IReactOnSwap.cs.meta UPM experiment 5 years ago
LICENSE UPM experiment 5 years ago
LICENSE.meta UPM experiment 5 years ago
README.md UPM experiment 5 years ago
README.md.meta UPM experiment 5 years ago
SUMMARY.md GitBook: [master] 5 pages modified 5 years ago
Sequencer.cs UPM experiment 5 years ago
Sequencer.cs.meta UPM experiment 5 years ago
Serialization.meta UPM experiment 5 years ago
SimpleSubmissionEntityViewScheduler.cs UPM experiment 5 years ago
SimpleSubmissionEntityViewScheduler.cs.meta UPM experiment 5 years ago
Svelto.ECS.asmdef UPM experiment 5 years ago
Svelto.ECS.asmdef.meta UPM experiment 5 years ago
Svelto.ECS.csproj UPM experiment 5 years ago
Svelto.ECS.csproj.meta UPM experiment 5 years ago
TypeCache.cs UPM experiment 5 years ago
TypeCache.cs.meta UPM experiment 5 years ago
WaitForSubmissionEnumerator.cs UPM experiment 5 years ago
WaitForSubmissionEnumerator.cs.meta UPM experiment 5 years ago
package.json UPM experiment 5 years ago
package.json.meta UPM experiment 5 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.