public static int AddBlock(EntityType entityType) { int id = entities.AddId(); EntityBlock entityBlock = new EntityBlock(id, entityType); entities[id] = entityBlock; return(id); }