Start on a tread to run the fluid tile networks
This commit is contained in:
parent
e6935ed859
commit
44d5e57116
1 changed files with 36 additions and 0 deletions
36
src/dark/fluid/common/pipes/ThreadFluidNetwork.java
Normal file
36
src/dark/fluid/common/pipes/ThreadFluidNetwork.java
Normal 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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue