Start on a tread to run the fluid tile networks

This commit is contained in:
DarkGuardsman 2013-10-29 04:17:46 -04:00
parent e6935ed859
commit 44d5e57116

View file

@ -0,0 +1,36 @@
package dark.fluid.common.pipes;
import java.util.ArrayList;
import java.util.List;
import com.builtbroken.common.Pair;
import dark.core.prefab.tilenetwork.fluid.NetworkFluidTiles;
public class ThreadFluidNetwork extends Thread
{
protected static List<Pair<NetworkFluidTiles, Boolean>> storageCalcList = new ArrayList();
//TODO create a thread to off load tile network calculation to reduce strain on the main thread. Things to include are fluid container updates, path finding, and fill target finding.
/** Makes a request that this thread calculate the liquid storage locations in the network for
* the entire network's volume
*
* @even - each tile will get the same fluid level. If false physics will be used to calculate
* were the fluid is */
public static void calculateStorage(NetworkFluidTiles network, boolean even)
{
}
public static void sendUpdateToClient(NetworkFluidTiles network)
{
}
@Override
public void run()
{
}
}