xz
This commit is contained in:
2022-10-09 17:05:20 +03:00
parent bb2b677f10
commit fee8a1985f
3 changed files with 63 additions and 0 deletions

22
ActivateWelders.cs Normal file
View File

@@ -0,0 +1,22 @@
public Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Update100;
}
public void Save()
{
}
public void Main(string argument, UpdateType updateSource)
{
List<IMyTerminalBlock> welders = new List<IMyWelder>();
GridTerminalSystem.GetBlocksOfType<IMyWelder>(welders, block => IsSameConstructAs(Me));
foreach (var welder in welders)
{
if (!welder.Enabled)
{
welder.ApplyAction("OnOff_On");
}
}
}