Click or drag to resize
IMyGridProgram Interface
v01.180.0 (Beta)

[This is preliminary documentation and is subject to change.]

The interface for the grid program provides extra access for the game and for mods. See MyGridProgram for the class the scripts actually derive from.

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IMyGridProgram

The IMyGridProgram type exposes the following members.

Methods
  NameDescription
Public methodMain
Invokes this grid program.
Public methodSave
If this grid program has state saving capability, calling this method will invoke it.
Top
Properties
  NameDescription
Public propertyEcho
Gets or sets the action which prints out text onto the currently running programmable block's detail info area.
Public propertyElapsedTime Obsolete.
Gets or sets the amount of time elapsed since the last time this grid program was run.
Public propertyGridTerminalSystem
Gets or sets the GridTerminalSystem available for the grid programs.
Public propertyHasMainMethod
Determines whether this grid program has a valid Main method.
Public propertyHasSaveMethod
Determines whether this grid program has a valid Save method.
Public propertyMe
Gets or sets the programmable block which is currently running this grid program.
Public propertyRuntime
Gets or sets the object used to provide runtime information for the running grid program.
Public propertyStorage
Gets or sets the storage string for this grid program.
Top
See Also