mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 06:53:31 +08:00
WIP for UXAssist 1.2.16
This commit is contained in:
13
UXAssist/Functions/FactoryFunctions.cs
Normal file
13
UXAssist/Functions/FactoryFunctions.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace UXAssist.Functions;
|
||||
|
||||
public static class FactoryFunctions
|
||||
{
|
||||
public static void CutConveyorBelt(CargoTraffic cargoTraffic, int beltId)
|
||||
{
|
||||
ref var belt = ref cargoTraffic.beltPool[beltId];
|
||||
if (belt.id != beltId || belt.outputId <= 0) return;
|
||||
var (i0, i1, i2) = (belt.rightInputId, belt.backInputId, belt.leftInputId);
|
||||
cargoTraffic._arrInputs(ref i0, ref i1, ref i2);
|
||||
cargoTraffic.AlterBeltConnections(beltId, 0, i0, i1, i2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user