Skip to content

How to interface Objects with Entities #88

Answered by sebas77
sebas77 asked this question in Q&A
Discussion options

You must be logged in to vote

Svelto.ECS officially provides the EntityViewComponent and implementors way to be able to wrap an object around an interface. This method is now NOT recommended anymore and I am in the process of changing the miniexamples that still use it.

The best way to interface OOP and entities is explained in the article:

https://www.sebaslab.com/oop-abstraction-layer-in-a-ecs-centric-application/

and this is a good miniexample to follow:

https://github.com/sebas77/Svelto.MiniExamples/tree/master/Example1-DoofusesMustEat/DOOFUSES_GAMEOBJECTS

Replies: 1 comment

Comment options

sebas77
Oct 21, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by sebas77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
FAQ Svelto FAQs
1 participant