Skip to content

1.0.17

Compare
Choose a tag to compare
@genaray genaray released this 09 Dec 19:48
· 345 commits to master since this release

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();