Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 static public void Run(VoxelMeshBuild vmb, VoxelProduct product)
 {
     vmb.build(product);
 }