Last active
December 2, 2015 06:44
-
-
Save csmith/5f9e4edf51b0b24de0ef to your computer and use it in GitHub Desktop.
Sample code to retrieve solar panel output in Space Engineers
This file contains 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(string argument) | |
{ | |
var info = GridTerminalSystem.GetBlockWithName("Solar Panel").DetailedInfo; | |
var lines = info.Split('\n'); | |
var output = lines[2].Split(':')[1].Trim(); // output = "110 kW" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment