Batch Operations
var entity = store. CreateEntity();
entity.AddComponent(new Position(1,2,3));
entity.AddComponent(new Transform());
entity.AddComponent(new EntityName("test"));var entity = store.CreateEntity(new Position(1,2,3), new Transform(), new EntityName("test"));Create entities
public static void CreateEntityOperation()
{
var store = new EntityStore();
for (int n = 0; n < 10; n++) {
store.CreateEntity(new EntityName("test"), new Position(), Tags.Get<MyTag1>());
}
var taggedEntities = store.Query().AllTags(Tags.Get<MyTag1>());
Console.WriteLine(taggedEntities); // > Query: [#MyTag1] Count: 10
}Bulk - Create entities
Add/Remove components
Add/Remove components with EntityBatch
EntityBatchEntityBatch - Bulk execution
EntityBatch - Bulk executionApply EntityBatch to an EntityList
EntityBatch to an EntityListLast updated