File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -401,4 +401,3 @@ FodyWeavers.xsd
401401* .dt
402402* .Dump
403403SEScriptingUtilities /SEScriptingUtilities.projitems
404- SEScriptingTesting /
Original file line number Diff line number Diff line change 1+ using System . Collections . Generic ;
2+ using Sandbox . ModAPI . Ingame ;
3+
4+ namespace IngameScript
5+ {
6+ partial class Program : MyGridProgram
7+ {
8+ public Program ( )
9+ {
10+ Logging . gridProgram = this ;
11+ Logging . DebugEnable = true ;
12+ //RequiredGroup<IMyMotorStator> rotorsGroup = new RequiredGroup<IMyMotorStator>("Rotor Group",false);
13+ RequiredBlock < IMyMotorStator > rotor = new RequiredBlock < IMyMotorStator > ( "Rotor" , false ) ;
14+ //rotorsGroup.LoadGroup();
15+ rotor . LoadBlock ( ) ;
16+ //List<IMyMotorStator> rotorsGroup = BlockFinding.GetRequiredGroupByKey<IMyMotorStator>("Rotor Group");
17+ //CheckGroupExists("Rotor Group",rotorsGroup);
18+ }
19+
20+ public void Main ( string argument , UpdateType updateSource )
21+ {
22+
23+ }
24+ public bool CheckGroupExists < T > ( string Identifier , List < T > GroupBlocks ) where T : class
25+ {
26+ bool Exists = BlockFinding . FindRequiredGroupsByKey ( Identifier ) ;
27+ DebugGroupFound ( Exists , Identifier , GroupBlocks ) ;
28+ return Exists ;
29+ }
30+ private void DebugGroupFound < T > ( bool Exists , string Identifier , List < T > GroupBlocks ) where T : class
31+ {
32+ BlockFinding . FoundGroup ( Exists , Identifier , BlockUtilities . ConvertToTerminalBlockList ( GroupBlocks ) ) ;
33+ }
34+ }
35+ }
You can’t perform that action at this time.
0 commit comments