EntityReference
EntityReference, keep entities apart.
var entity = world.Create<Dwarf, Position, Velocity>();
var reference = entity.Reference();
// Checks if the entity is the same as before by comparing the version and its id
if(reference.IsAlive()) {
var referencedEntity = ((Entity)reference);
Console.WriteLine(referencedEntity);
} Last updated