static public Task Task(VoxelMeshBuild vmb, VoxelProduct.Product main, Dictionary <Vector3Int, VoxelHandler> all) { Task task = new Task(); TaskManager.PushFront(task, delegate { vmb.build(main, all); }); return(task); }
static public Task Task(VoxelMeshBuild vmb, VoxelProduct product) { TaskPack tp = new TaskPack(delegate() { if (product.sub != null) { TaskList tl = new TaskList(); for (int i = 0; i < product.sub.Length; ++i) { tl.push(Build.Task(vmb, product.sub[i], product.main.voxels)); } return(tl); } else { return(Build.Task(vmb, product.main, product.main.voxels)); } }); return(tp); }
static public void Run(VoxelMeshBuild vmb, VoxelProduct product) { vmb.build(product); }