EntityData
EntityData, a way to access meta data of entities directly.
Example
var entity = world.Create(new Dwarf(), new Pickaxe());
ref var data = ref world.GetEntityData(entity);
// Less lookups, faster then doing it the traditional way
ref var pickaxe = ref data.Get<Pickaxe>();
pickaxe.HP = 100;
data.Set<Pickaxe>(new Pickaxe());
// Access archetype & chunk
var archetype = data.Archetype;
ref var chunk = ref data.Chunk; Last updated