xz
xz
This commit is contained in:
22
ActivateWelders.cs
Normal file
22
ActivateWelders.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
AutoCraft.cs
Normal file
22
AutoCraft.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
IMyTextPanel LCD;
|
||||
|
||||
public Program()
|
||||
{
|
||||
Runtime.UpdateFrequency = UpdateFrequency.Update10;
|
||||
|
||||
LCD = GridTerminalSystem.GetBlockWithName("Дисплей 1х2") as IMyTextPanel;
|
||||
|
||||
List<IMyCargoContainer> containers = new List<IMyCargoContainer>();
|
||||
GridTerminalSystem.GetBlocksOfType<IMyCargoContainer>(containers, block => block.IsSameConstructAs(Me))
|
||||
|
||||
// List<IMyTerminalBlock> engines = new List<IMyTerminalBlock>();
|
||||
// GridTerminalSystem.GetBlockGroupWithName("Engines").GetBlocks(engines, block => block.IsSameConstructAs(Me));
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
}
|
||||
|
||||
public void Main(string argument, UpdateType updateSource)
|
||||
{
|
||||
}
|
||||
@@ -40,6 +40,25 @@ public void Main(string argument, UpdateType updateSource)
|
||||
{ "SolarCell", 0 },
|
||||
{ "PowerCell", 0 },
|
||||
};
|
||||
Dictionary<String,int> components = new Dictionary<String,int>() {
|
||||
"Welder", "PhysicalGunObject", "WelderItem"
|
||||
"Enhanced Welder", "PhysicalGunObject", "Welder2Item"
|
||||
"Proficient Welder", "PhysicalGunObject", "Welder3Item"
|
||||
"Elite Welder", "PhysicalGunObject", "Welder4Item"
|
||||
"Grinder", "PhysicalGunObject", "AngleGrinderItem"
|
||||
"Enhanced Grinder", "PhysicalGunObject", "AngleGrinder2Item"
|
||||
"Proficient Grinder", "PhysicalGunObject", "AngleGrinder3Item"
|
||||
"Elite Grinder", "PhysicalGunObject", "AngleGrinder4Item"
|
||||
"Drill", "PhysicalGunObject", "HandDrillItem"
|
||||
"Enhanced Drill", "PhysicalGunObject", "HandDrill2Item"
|
||||
"Proficient Drill", "PhysicalGunObject", "HandDrill3Item"
|
||||
"Elite Drill", "PhysicalGunObject", "HandDrill4Item"
|
||||
"Oxygen Bottle", "OxygenContainerObject", "OxygenBottle"
|
||||
"Hydrogen Bottle", "GasContainerObject", "HydrogenBottle"
|
||||
"Missile Container", "AmmoMagazine", "Missile200mm"
|
||||
"Ammo Container", "AmmoMagazine", "NATO_25x184mm"
|
||||
"Magazine", "AmmoMagazine", "NATO_5p56x45mm"
|
||||
};
|
||||
Dictionary<String,float> ingots = new Dictionary<String,float>() {
|
||||
{ "Nickel", 6 },
|
||||
{ "Cobalt", 5 },
|
||||
|
||||
Reference in New Issue
Block a user