Click or drag to resize
IMyCubeGrid Interface

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

[Missing <summary> documentation for "T:VRage.Game.ModAPI.IMyCubeGrid"]

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
public interface IMyCubeGrid : IMyCubeGrid, 
	IMyEntity

The IMyCubeGrid type exposes the following members.

Properties
  NameDescription
Public propertyBigOwners
List of players with majority of blocks on grid
Public propertyCastShadows (Inherited from IMyEntity.)
Public propertyClosed (Inherited from IMyEntity.)
Public propertyComponents (Inherited from IMyEntity.)
Public propertyDebugAsyncLoading (Inherited from IMyEntity.)
Public propertyDisplayName (Inherited from IMyEntity.)
Public propertyEntityId (Inherited from IMyEntity.)
Public propertyFastCastShadowResolve (Inherited from IMyEntity.)
Public propertyFlags (Inherited from IMyEntity.)
Public propertyGameLogic (Inherited from IMyEntity.)
Public propertyGridSize
Grid size in meters
Public propertyGridSizeEnum
Grid size enumeration
Public propertyHierarchy (Inherited from IMyEntity.)
Public propertyInScene (Inherited from IMyEntity.)
Public propertyInvalidateOnMove (Inherited from IMyEntity.)
Public propertyIsCCDForProjectiles (Inherited from IMyEntity.)
Public propertyIsStatic
Station = static
Public propertyIsVolumetric (Inherited from IMyEntity.)
Public propertyLocalAABB (Inherited from IMyEntity.)
Public propertyLocalAABBHr (Inherited from IMyEntity.)
Public propertyLocalMatrix (Inherited from IMyEntity.)
Public propertyLocalVolume (Inherited from IMyEntity.)
Public propertyLocalVolumeOffset (Inherited from IMyEntity.)
Public propertyLocationForHudMarker (Inherited from IMyEntity.)
Public propertyMarkedForClose (Inherited from IMyEntity.)
Public propertyMax
Maximum coordinates of blocks in grid
Public propertyMaxGlassDistSq (Inherited from IMyEntity.)
Public propertyMin
Minimum coordinates of blocks in grid
Public propertyName (Inherited from IMyEntity.)
Public propertyNearFlag (Inherited from IMyEntity.)
Public propertyNeedsDraw (Inherited from IMyEntity.)
Public propertyNeedsDrawFromParent (Inherited from IMyEntity.)
Public propertyNeedsResolveCastShadow (Inherited from IMyEntity.)
Public propertyNeedsUpdate (Inherited from IMyEntity.)
Public propertyParent (Inherited from IMyEntity.)
Public propertyPersistentFlags (Inherited from IMyEntity.)
Public propertyPhysics (Inherited from IMyEntity.)
Public propertyPositionComp (Inherited from IMyEntity.)
Public propertyRender (Inherited from IMyEntity.)
Public propertySave (Inherited from IMyEntity.)
Public propertyShadowBoxLod (Inherited from IMyEntity.)
Public propertySkipIfTooSmall (Inherited from IMyEntity.)
Public propertySmallOwners
List of players with any blocks on grid
Public propertySyncObject (Inherited from IMyEntity.)
Public propertyTransparent (Inherited from IMyEntity.)
Public propertyVisible (Inherited from IMyEntity.)
Public propertyWorldAABB (Inherited from IMyEntity.)
Public propertyWorldAABBHr (Inherited from IMyEntity.)
Public propertyWorldMatrix (Inherited from IMyEntity.)
Public propertyWorldMatrixInvScaled (Inherited from IMyEntity.)
Public propertyWorldMatrixNormalizedInv (Inherited from IMyEntity.)
Public propertyWorldVolume (Inherited from IMyEntity.)
Public propertyWorldVolumeHr (Inherited from IMyEntity.)
Top
Methods
  NameDescription
Public methodAddBlock
Add a cubeblock to the grid
Public methodAddToGamePruningStructure (Inherited from IMyEntity.)
Public methodApplyDestructionDeformation
Applies random deformation to given block
Public methodBeforeSave (Inherited from IMyEntity.)
Public methodCalculateMergeTransform
Transformation matrix that has to be applied to grid blocks to correctly merge it used because ie. ships can be turned 90 degrees along X axis when being merged
Public methodCanMergeCubes
Determines if merge between grids is possible with given offset
Public methodChangeGridOwnership
Changes owner of all blocks on grid Call only on server!
Public methodClearSymmetries
Clears symmetry planes
Public methodClose (Inherited from IMyEntity.)
Public methodColorBlocks
Sets given color mask to range of blocks
Public methodConvertToDynamic
Converts station to ship
Public methodCubeExists
Returns true if there is any block occupying given position
Public methodDebugDraw (Inherited from IMyEntity.)
Public methodDebugDrawInvalidTriangles (Inherited from IMyEntity.)
Public methodDelete (Inherited from IMyEntity.)
Public methodDoOverlapSphereTest (Inherited from IMyEntity.)
Public methodEnableColorMaskForSubparts (Inherited from IMyEntity.)
Public methodFixTargetCube
Clamps fractional grid position to nearest cell (prefers neighboring occupied cell before empty)
Public methodGetBlocks
Returns blocks in grid
Public methodGetBlocksInsideSphere
Returns blocks inside given sphere (world space)
Public methodGetChildren (Inherited from IMyEntity.)
Public methodGetClosestCorner
Gets position of closest cell corner
Public methodGetCubeBlock
Get cube block at given position
Public methodGetDiffuseColor (Inherited from IMyEntity.)
Public methodGetDistanceBetweenCameraAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetDistanceBetweenCameraAndPosition (Inherited from IMyEntity.)
Public methodGetFriendlyName (Inherited from IMyEntity.)
Public methodGetIntersectionWithLineAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetIntersectionWithSphere (Inherited from IMyEntity.)
Public methodGetLargestDistanceBetweenCameraAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetLineIntersectionExactAll
Returns point of intersection with line
Public methodGetLineIntersectionExactGrid
Same as GetLineIntersectionExactAll just without intersected block
Public methodGetObjectBuilder (Inherited from IMyEntity.)
Public methodGetPosition (Inherited from IMyEntity.)
Public methodGetSmallestDistanceBetweenCameraAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetSubpart (Inherited from IMyEntity.)
Public methodGetTopMostParent (Inherited from IMyEntity.)
Public methodGetTrianglesIntersectingSphere (Inherited from IMyEntity.)
Public methodGetViewMatrix (Inherited from IMyEntity.)
Public methodGetWorldMatrixNormalizedInv (Inherited from IMyEntity.)
Public methodGridIntegerToWorld
Converts grid coordinates to world space
Public methodIsTouchingAnyNeighbor
Finds out if given area has any neighboring block
Public methodIsTrash
Algorithm used by game to define useless grids to be deleted
Public methodIsVisible (Inherited from IMyEntity.)
Public methodMergeGrid_MergeBlock
Merge used by merge blocks
Public methodOnAddedToScene (Inherited from IMyEntity.)
Public methodOnRemovedFromScene (Inherited from IMyEntity.)
Public methodRayCastBlocks
Returns cell with block intersecting given line
Public methodRayCastCells
Returns list of cells with blocks intersected by line
Public methodRazeBlock
Remove block at given position
Public methodRazeBlocks(ListVector3I)
Remove blocks at given positions
Public methodRazeBlocks(Vector3I, Vector3UByte)
Remove blocks in given area
Public methodRemoveBlock
Removes given block
Public methodRemoveDestroyedBlock
Removes block and deformates neighboring blocks
Public methodRemoveFromGamePruningStructure (Inherited from IMyEntity.)
Public methodSetColorMaskForSubparts (Inherited from IMyEntity.)
Public methodSetEmissiveParts
Sets the emissive value of a specific emissive material on entity.
(Inherited from IMyEntity.)
Public methodSetEmissivePartsForSubparts
Sets the emissive value of a specific emissive material on all entity subparts.
(Inherited from IMyEntity.)
Public methodSetLocalMatrix (Inherited from IMyEntity.)
Public methodSetPosition (Inherited from IMyEntity.)
Public methodSetWorldMatrix (Inherited from IMyEntity.)
Public methodTryGetSubpart (Inherited from IMyEntity.)
Public methodUpdateBlockNeighbours
Refreshes block neighbors (checks connections)
Public methodUpdateGamePruningStructure (Inherited from IMyEntity.)
Public methodUpdateOwnership
Public methodWillRemoveBlockSplitGrid
Checks if removing a block will cause the grid to split
Public methodWorldToGridInteger(Vector3D)
Public methodWorldToGridInteger(Vector3)
Converts world coordinates to grid space cell coordinates
Top
Events
  NameDescription
Public eventOnBlockAdded
Public eventOnBlockOwnershipChanged
Public eventOnBlockRemoved
Public eventOnClose (Inherited from IMyEntity.)
Public eventOnClosing (Inherited from IMyEntity.)
Public eventOnMarkForClose (Inherited from IMyEntity.)
Public eventOnPhysicsChanged (Inherited from IMyEntity.)
Top
See Also