sebas77/Svelto.ECS

Recreate entity with same id

Closed this issue · 3 comments

           _entityFactory.BuildEntity<HouseBuildingEntityDescriptor>(101, null);
            yield return new WaitForSecondsEnumerator(2);
            _entityFunctions.RemoveEntity(101);
            yield return new WaitForSecondsEnumerator(2);
            _entityFactory.BuildEntity<HouseBuildingEntityDescriptor>(101, null);

i have error, FasterDictionaryException: Key already present.

Why i can't recreate entity with same id?

thanks I didn't notice you added an issue here too. That's what I needed not the github project :P. I will be back to you asap!

ok this is now fixed ;)