1.0.17
Bug Fixes
Fixed the acessability of CreationBuffer
and ModificationBuffer
constructors, thanks @andreakarasho ! :)
You may now use them like this...
var creationBuffer = new CreationBuffer(world, 1024); <- Initial capacity, not total capacity
world.ParallelQuery(in desc, (in Entity en) => {
var entity = creationBuffer.Create(group);
entity.Set<Explosion>(...);
entity.Set<Position>(...);
});
creationBuffer.Playback(); // Must happen after a queries on the mainthread.
or this...
var buffer = new ModificationBuffer(world, 1024);
world.ParallelQuery(in desc, (in Entity en) => {
var modifiedEntity = buffer.Modify(in en);
buffer.Set(...);
});
buffer.Playback();