Skip to content

Commit f337356

Browse files
Revert "Stopped tracking TestProject SEScriptingTesting."
This reverts commit c2e36c6.
1 parent c31b4eb commit f337356

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,4 +401,3 @@ FodyWeavers.xsd
401401
*.dt
402402
*.Dump
403403
SEScriptingUtilities/SEScriptingUtilities.projitems
404-
SEScriptingTesting/

SEScriptingTesting/Program.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

0 commit comments

Comments
 (0)