mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-10 07:23:28 +08:00
14 lines
488 B
C#
14 lines
488 B
C#
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);
|
|
}
|
|
}
|