Created
January 6, 2015 06:09
-
-
Save awstanley/65f5b66e1064d3826239 to your computer and use it in GitHub Desktop.
Space Engineers script to get information from the block (CSV, but you need to parse it out)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
for (int block = 0; block < GridTerminalSystem.Blocks.Count; block++) | |
{ | |
if (GridTerminalSystem.Blocks[block] is IMyTerminalBlock) | |
{ | |
IMyTerminalBlock Block = GridTerminalSystem.Blocks[block]; | |
StringBuilder Str = new StringBuilder(); Str.Append(Block.BlockDefinition.ToString()); | |
Str.Append("[" + Block.DetailedInfo + "] "); | |
Block.SetCustomName(Str); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment