Created
December 2, 2015 06:42
-
-
Save csmith/66ac64ed1b2812947846 to your computer and use it in GitHub Desktop.
Sample code showing old and new action styles for 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 block = GridTerminalSystem.GetBlockWithName("Beacon"); | |
// Verbose way: | |
block.GetActionWithName("OnOff").Apply(block); | |
// Better way: | |
block.ApplyAction("OnOff"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment