static public Task Task(VoxelRemoveFace rsv, VoxelProduct.Product main) { Task task = new Task(); TaskManager.PushFront(task, delegate { rsv.build(main); }); return(task); }
static public Task Task(VoxelRemoveFace vrf, 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(vrf, product.sub[i])); } return(tl); } else { return(Build.Task(vrf, product.main)); } }); return(tp); }
static public void Run(VoxelRemoveFace vrf, VoxelProduct product) { vrf.build(product); }