Thank you!
In the end I managed to find the solution and it was kinda embarasing (I was passing the AssetLocation as the parameter of the CreateEntity function instead of the EntityType), seems like C# is not good enforcing Datatypes on their parameters
So that kinda solves one issue, but I now have another.
Now I can create the entity without crashing, and even tried to spawn it following your example using
So far doesn't give me any errors nor crashes, but even though It looks like is spawning my entity, the code never reaches the Initialize function on my entity class. Because I added a log on that function, but doesn't show anything when using the item that spawns the entity.
so I though maybe the entity I was generating wasn't actually generating the correct entity class. But I tried calling the Initialize method directly from the entity I created on my item class, and It actually calls my class's Initialize function
Im seeing the log I made on the EntityDoll class so the entity I created is a real instance of my EntityDoll class
but of course Im 99% sure that's not how is supposed to work right? when creating or spawning the entity the Initialize function should be called automatically right?
I updated my github repository with the solution to the crash when spawning the entity. I hope someone can help me figure out what am I doing wrong this time.