Difference between revisions of "Scripting API Documentation"

From Space Engineers Wiki
Jump to: navigation, search
(creating a table of contents to the scripting api so as to act as a starting point)
 
(Sandbox.ModAPI.Ingame)
Line 761: Line 761:
 
|An interface.
 
|An interface.
 
|-
 
|-
|[[Sandbox.ModAPI.Ingame.IMyGridTerminalSystem|IMyGridTerminalSystem]]
+
|[[Sandbox.ModAPI.Ingame.MyGridTerminalSystem|IMyGridTerminalSystem]]
|An interface.
+
|Static object that allows access to other blocks on the same and locally connected grids.
 
|-
 
|-
 
|[[Sandbox.ModAPI.Ingame.IMyGyro|IMyGyro]]
 
|[[Sandbox.ModAPI.Ingame.IMyGyro|IMyGyro]]
Line 894: Line 894:
 
|-
 
|-
 
|}
 
|}
 
  
 
==Sandbox.ModAPI.Interfaces==
 
==Sandbox.ModAPI.Interfaces==

Revision as of 00:10, 13 January 2015

In Update 01.063, In-game Programming was introduced, allowing Engineers to make their own scripts to be compiled and ran by the Programmable Block. There is a limited API available to would-be coders which is described and documented here.

An alternative documentation is available to experienced c# developers here, as explained in this forum post here.

Sandbox.Common.ObjectBuilders

Classes
Name Description
ModdableContentFile A class
MyConfigDedicatedData A class
MyObjectBuilder_AmmoMagazine A class
MyObjectBuilder_AngleGrinder A class
MyObjectBuilder_Assembler A class
MyObjectBuilder_AutomaticRifle A class
MyObjectBuilder_AutopilotBase A class
MyObjectBuilder_Base A class
MyObjectBuilder_Battery A class
MyObjectBuilder_BatteryBlock A class
MyObjectBuilder_Beacon A class
MyObjectBuilder_BlockGroup A class
MyObjectBuilder_ButtonPanel A class
MyObjectBuilder_CameraBlock A class
MyObjectBuilder_CargoContainer A class
MyObjectBuilder_Character A class
MyObjectBuilder_ChatHistory A class
MyObjectBuilder_ChatItem A class
MyObjectBuilder_Checkpoint A class
MyObjectBuilder_Client A class
MyObjectBuilder_Cockpit A class
MyObjectBuilder_Collector A class
MyObjectBuilder_Component A class
MyObjectBuilder_CompoundCubeBlock A class
MyObjectBuilder_ConstructionStockpile A class
MyObjectBuilder_ControlPanel A class
MyObjectBuilder_Conveyor A class
MyObjectBuilder_ConveyorConnector A class
MyObjectBuilder_ConveyorLine A class
MyObjectBuilder_ConveyorPacket A class
MyObjectBuilder_ConveyorTurretBase A class
MyObjectBuilder_CubeBlock A class
MyObjectBuilder_CubeGrid A class
MyObjectBuilder_CubePlacer A class
MyObjectBuilder_Decoy A class
MyObjectBuilder_DeviceBase A class
MyObjectBuilder_Door A class
MyObjectBuilder_Drill A class
MyObjectBuilder_Encounters A class
MyObjectBuilder_EntityBase A class
MyObjectBuilder_ExtendedPistonBase A class
MyObjectBuilder_FactionChatHistory A class
MyObjectBuilder_FactionCollection A class
MyObjectBuilder_FloatingObject A class
MyObjectBuilder_FracturedBlock A class
MyObjectBuilder_FracturedPiece A class
MyObjectBuilder_FunctionalBlock A class
MyObjectBuilder_GlobalChatHistory A class
MyObjectBuilder_GlobalEventBase A class
MyObjectBuilder_GlobalEvents A class
MyObjectBuilder_GravityGenerator A class
MyObjectBuilder_GravityGeneratorSphere A class
MyObjectBuilder_GunBase A class
MyObjectBuilder_GunBase.RemainingAmmoIns A class
MyObjectBuilder_Gyro A class
MyObjectBuilder_HandDrill A class
MyObjectBuilder_Identity A class
MyObjectBuilder_Ingot A class
MyObjectBuilder_InteriorLight A class
MyObjectBuilder_InteriorTurret A class
MyObjectBuilder_Inventory A class
MyObjectBuilder_InventoryItem A class
MyObjectBuilder_Ladder A class
MyObjectBuilder_LandingGear A class
MyObjectBuilder_LargeGatlingTurret A class
MyObjectBuilder_LargeMissileTurret A class
MyObjectBuilder_LastLoadedTimes A class
MyObjectBuilder_LastSession A class
MyObjectBuilder_LightingBlock A class
MyObjectBuilder_MedicalRoom A class
MyObjectBuilder_MergeBlock A class
MyObjectBuilder_Meteor A class
MyObjectBuilder_Missile A class
MyObjectBuilder_ModInfo A class
MyObjectBuilder_MotorAdvancedRotor A class
MyObjectBuilder_MotorAdvancedStator A class
MyObjectBuilder_MotorBase A class
MyObjectBuilder_MotorRotor A class
MyObjectBuilder_MotorStator A class
MyObjectBuilder_MotorSuspension A class
MyObjectBuilder_MyProgrammableBlock A class
MyObjectBuilder_Ore A class
MyObjectBuilder_OreDetector A class
MyObjectBuilder_Passage A class
MyObjectBuilder_PhysicalCubeBlockObject A class
MyObjectBuilder_PhysicalGunObject A class
MyObjectBuilder_PhysicalObject A class
MyObjectBuilder_PistonBase A class
MyObjectBuilder_PistonTop A class
MyObjectBuilder_Player A class
MyObjectBuilder_Player.CameraControllerSettings A class
MyObjectBuilder_PlayerChatHistory A class
MyObjectBuilder_ProductionBlock A class
MyObjectBuilder_Projector A class
MyObjectBuilder_RadioAntenna A class
MyObjectBuilder_Reactor A class
MyObjectBuilder_RealWheel A class
MyObjectBuilder_Refinery A class
MyObjectBuilder_ReflectorLight A class
MyObjectBuilder_RemoteControl A class
MyObjectBuilder_Sector A class
MyObjectBuilder_SensorBlock A class
MyObjectBuilder_SessionSettings A class
MyObjectBuilder_ShipConnector A class
MyObjectBuilder_ShipController A class
MyObjectBuilder_ShipGrinder A class
MyObjectBuilder_ShipToolBase A class
MyObjectBuilder_ShipWelder A class
MyObjectBuilder_SignalLight A class
MyObjectBuilder_SimpleAutopilot A class
MyObjectBuilder_SmallGatlingGun A class
MyObjectBuilder_SmallMissileLauncher A class
MyObjectBuilder_SmallMissileLauncherReload A class
MyObjectBuilder_SolarPanel A class
MyObjectBuilder_SoundBlock A class
MyObjectBuilder_SpaceBall A class
MyObjectBuilder_StockpileItem A class
MyObjectBuilder_TerminalBlock A class
MyObjectBuilder_Thrust A class
MyObjectBuilder_TimerBlock A class
MyObjectBuilder_Toolbar A class
MyObjectBuilder_ToolbarItem A class
MyObjectBuilder_ToolbarItemAnimation A class
MyObjectBuilder_ToolbarItemCubeBlock A class
MyObjectBuilder_ToolbarItemDefinition A class
MyObjectBuilder_ToolbarItemEmpty A class
MyObjectBuilder_ToolbarItemPrefabThrower A class
MyObjectBuilder_ToolbarItemTerminal A class
MyObjectBuilder_ToolbarItemTerminalBlock A class
MyObjectBuilder_ToolbarItemTerminalGroup A class
MyObjectBuilder_ToolbarItemWeapon A class
MyObjectBuilder_ToolbarItemVoxelHand A class
MyObjectBuilder_TurretBase A class
MyObjectBuilder_Warhead A class
MyObjectBuilder_Welder A class
MyObjectBuilder_Wheel A class
MyObjectBuilder_VirtualMass A class
MyObjectBuilder_World A class
MyObjectBuilderDefinitionAttribute A class
MyObjectBuilderExtensions A class
MyObjectBuilderType.ComparerType A class
MyRuntimeObjectBuilderId.IdComparerType A class
Structs
Name Description
BoneInfo A struct
MyEncounterId A struct
MyObjectBuilder_Checkpoint.ModItem A struct
MyObjectBuilder_Checkpoint.PlayerId A struct
MyObjectBuilder_Checkpoint.PlayerItem A struct
MyObjectBuilder_Checkpoint.RespawnCooldownItem A struct
MyObjectBuilder_CubeBlock.MySubBlockId A struct
MyObjectBuilder_FactionRelation A struct
MyObjectBuilder_FactionRequests A struct
MyObjectBuilder_FracturedBlock.ShapeB A struct
MyObjectBuilder_FracturedPiece.Shape A struct
MyObjectBuilder_ProductionBlock.QueueItem A struct
MyObjectBuilder_Toolbar.Slot A struct
MyObjectBuilderType A struct
MyOrientation A struct
MyPositionAndOrientation A struct
MyRuntimeObjectBuilderId A struct
Interfaces
Name Description
IMyRemapHelper An interface.
Enumerations
Name Description
MyBlockTopology An enum.
MyCameraControllerEnum An enum.
MyCharacterModelEnum An enum.
MyCubeSize An enum.
MyEnvironmentHostilityEnum An enum.
MyGameModeEnum An enum.
MyItemFlags An enum.
MyObjectBuilder_ConveyorLine.LineType An enum.
MyOnlineModeEnum An enum.
MyOwnershipShareModeEnum An enum.
MyPersistentEntityFlags2 An enum.
MySessionGameType Obsolete.
MySessionHarvestMode Obsolete.
MyToolbarType An enum.


Sandbox.ModAPI

Classes
Name Description
MyAPIGateway A class
Interfaces
Name Description
IMyButtonPanel An interface.
IMyConfigDedicated An interface.
IMyControllerInfo An interface.
IMyCubeBlock An interface.
IMyCubeBuilder An interface.
IMyCubeGrid An interface.
IMyDoor An interface.
IMyEntities An interface.
IMyEntity An interface.
IMyEntityController An interface.
IMyFaction An interface.
IMyFactionCollection An interface.
IMyFunctionalBlock An interface.
IMyGamePaths An interface.
IMyHudObjectiveLine An interface.
IMyIdentity An interface.
IMyInventory An interface.
IMyLandingGear An interface.
IMyMotorStator An interface.
IMyMultiplayer An interface.
IMyNetworkClient An interface.
IMyParallelTask An interface.
IMyPistonBase An interface.
IMyPlayer An interface.
IMyPlayerCollection An interface.
IMyProductionBlock An interface.
IMySensorBlock An interface.
IMySession An interface.
IMyShipMergeBlock An interface.
IMySlimBlock An interface.
IMyTerminalActionsHelper An interface.
IMyTerminalBlock An interface.
IMyUtilities An interface.
IMyVoxelMap An interface.
IMyVoxelMaps An interface.
Delegates
Name Description
MessageEnteredDel A Delegate.
Enumerations
Name Description
EntityFlags An enum.
ResultEnum An enum.


Sandbox.ModAPI.Ingame

Interfaces
Name Description
IMyAssembler An interface.
IMyBatteryBlock An interface.
IMyBeacon An interface.
IMyBlockGroup An interface.
IMyButtonPanel An interface.
IMyCameraBlock An interface.
IMyCargoContainer An interface.
IMyCockpit An interface.
IMyCollector An interface.
IMyControlPanel An interface.
IMyCubeBlock An interface.
IMyCubeGrid An interface.
IMyDoor An interface.
IMyFunctionalBlock An interface.
IMyGravityGenerator An interface.
IMyGravityGeneratorBase An interface.
IMyGravityGeneratorSphere An interface.
IMyGridTerminalSystem Static object that allows access to other blocks on the same and locally connected grids.
IMyGyro An interface.
IMyInteriorLight An interface.
IMyLandingGear An interface.
IMyLargeConveyorTurretBase An interface.
IMyLargeGatlingTurret An interface.
IMyLargeInteriorTurret An interface.
IMyLargeMissileTurret An interface.
IMyLargeTurretBase An interface.
IMyLightingBlock An interface.
IMyMedicalRoom An interface.
IMyMotorAdvancedStator An interface.
IMyMotorBase An interface.
IMyMotorStator An interface.
IMyMotorSuspension An interface.
IMyOreDetector An interface.
IMyPistonBase An interface.
IMyProductionBlock An interface.
IMyProgrammableBlock An interface.
IMyProjector An interface.
IMyRadioAntenna An interface.
IMyReactor An interface.
IMyRefinery An interface.
IMyReflectorLight An interface.
IMyRemoteControl An interface.
IMySensorBlock An interface.
IMyShipConnector An interface.
IMyShipController An interface.
IMyShipDrill An interface.
IMyShipGrinder An interface.
IMyShipMergeBlock An interface.
IMyShipToolBase An interface.
IMyShipWelder An interface.
IMySlimBlock An interface.
IMySmallGatlingGun An interface.
IMySmallMissileLauncher An interface.
IMySmallMissileLauncherReload An interface.
IMySolarPanel An interface.
IMySoundBlock An interface.
IMyTerminalBlock An interface.
IMyThrust An interface.
IMyTimerBlock An interface.
IMyWarhead An interface.
IMyVirtualMass An interface.

Sandbox.ModAPI.Interfaces

Interfaces
Name Description
IMyCameraController An interface.
IMyControllableEntity An interface.
IMyDestroyableObject An interface.
IMyInventory An interface.
IMyInventoryItem An interface.
IMyInventoryOwner An interface.
IMyStorage An interface.
ITerminalAction An interface.


Vrage.Math

Classes
Name Description
Base27Directions A class.
Base6Directions A class.
BoundingBox.ComparerType A class.
BoundingBoxD.ComparerType A class.
BoundingFrustum A class.
BoundingFrustumD A class.
ColorExtensions A class.
Curve A class.
CurveKey A class.
CurveKeyCollection A class.
DoubleExtensions A class.
FloatExtensions A class.
MathHelper A class.
MyDynamicAABBTree A class.
MyDynamicAABBTreeD A class.
MyLineSegmentOverlapResult<T>.MyLineSegmentOverlapResultComparer A class.
MyMortonCode3D A class.
Vector2I.ComparerClass A class.
Vector3I.EqualityComparer A class.
Vector3INormalEqualityComparer A class.
Vector3UByte.EqualityComparer A class.
Structs
Name Description
BoundingBox A struct.
BoundingBoxD A struct.
BoundingSphere A struct.
BoundingSphereD A struct.
Capsule A struct.
Color A struct.
Line A struct.
LineD A struct.
Matrix A struct.
MatrixD A struct.
MatrixI A struct.
MyBlockOrientation A struct.
MyBounds A struct.
MyLineSegmentOverlapResult<T> A struct.
MyOrientedBoundingBox A struct.
MyQuad A struct.
MyShort4 A struct.
MyTransform A struct.
MyUShort4 A struct.
Plane A struct.
PlaneD A struct.
Point A struct.
Quaternion A struct.
Ray A struct.
RayD A struct.
Rectangle A struct.
RectangleF A struct.
Vector2 A struct.
Vector2I A struct.
Vector3 A struct.
Vector3B A struct.
Vector3D A struct.
Vector3I A struct.
Vector3I.RangeIterator A struct.
Vector3S A struct.
Vector3UByte A struct.
Vector3Ushort A struct.
Vector4 A struct.
Vector4I A struct.
Vector4UByte A struct.
Enums
Name Description
Base27Directions.Direction An enum.
Base6Directions.Axis An enum.
Base6Directions.Direction An enum.
ContainmentType An enum.
CurveContinuity An enum.
CurveLoopType An enum.
CurveTangent An enum.
PlaneIntersectionType An enum.