MyGridProgram Class |
[This is preliminary documentation and is subject to change.]
Namespace: Sandbox.ModAPI.Ingame
public abstract class MyGridProgram : IMyGridProgram
The MyGridProgram type exposes the following members.
Name | Description | |
---|---|---|
Echo |
Prints out text onto the currently running programmable block's detail info area.
| |
ElapsedTime |
Gets the amount of in-game time elapsed from the previous run.
| |
GridTerminalSystem |
Provides access to the grid terminal system as viewed from this programmable block.
| |
Me |
Gets a reference to the currently running programmable block.
| |
Runtime |
Gets runtime information for the running grid program.
| |
Storage |
Allows you to store data between game sessions.
|
Name | Description | |
---|---|---|
IMyGridProgramEcho |
Gets or sets the action which prints out text onto the currently running programmable block's detail info area.
| |
IMyGridProgramElapsedTime |
Gets or sets the amount of time elapsed since the last time this grid program was run.
| |
IMyGridProgramGridTerminalSystem |
Gets or sets the GridTerminalSystem available for the grid programs.
| |
IMyGridProgramHasMainMethod |
Determines whether this grid program has a valid Main method.
| |
IMyGridProgramHasSaveMethod |
Determines whether this grid program has a valid Save method.
| |
IMyGridProgramMain |
Invokes this grid program.
| |
IMyGridProgramMe |
Gets or sets the programmable block which is currently running this grid program.
| |
IMyGridProgramRuntime |
Gets or sets the object used to provide runtime information for the running grid program.
| |
IMyGridProgramSave |
If this grid program has state saving capability, calling this method
will invoke it.
| |
IMyGridProgramStorage |
Gets or sets the storage string for this grid program.
|
public void Main() { // Print out the time elapsed since the currently running programmable block was run // the last time. Echo(Me.CustomName + " was last run " + Runtime.TimeSinceLastRun.TotalSeconds + " seconds ago."); }