This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
VRage.Game.ModAPI.Ingame.IMyCubeGrid
Malware edited this page Dec 24, 2018
·
43 revisions
← Index
Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
Implements:
Member | Description |
---|---|
CustomName | Display name of the grid (as seen in Info terminal tab) |
GridSize | Grid size in meters |
GridSizeEnum | Grid size enum |
IsStatic | Determines if the grid is static (unmoveable) |
Max | Maximum coordinates of blocks in grid |
Min | Minimum coordinates of blocks in grid |
Components | Inherited from IMyEntity |
EntityId | Inherited from IMyEntity |
Name | Inherited from IMyEntity |
DisplayName | Inherited from IMyEntity |
HasInventory | Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventory() != null. Inherited from IMyEntity |
InventoryCount | Returns the count of the number of inventories this entity has. Inherited from IMyEntity |
WorldAABB | Inherited from IMyEntity |
WorldAABBHr | Inherited from IMyEntity |
WorldMatrix | Inherited from IMyEntity |
WorldVolume | Inherited from IMyEntity |
WorldVolumeHr | Inherited from IMyEntity |
Member | Description |
---|---|
CubeExists(Vector3I) | Returns true if there is any block occupying given position |
GetCubeBlock(Vector3I) | Get cube block at given position |
GridIntegerToWorld(Vector3I) | Converts grid coordinates to world space |
WorldToGridInteger(Vector3D) | Converts world coordinates to grid space cell coordinates |
IsSameConstructAs(IMyCubeGrid) | Determines whether this grid is mechanically connected to the other. This is any grid connected with rotors or pistons or other mechanical devices, but not things like connectors. This will in most cases constitute your complete construct. Be aware that using merge blocks combines grids into one, so this function will not filter out grids connected that way. Also be aware that detaching the heads of pistons and rotors will cause this connection to change. |
GetInventory() | Simply get the MyInventoryBase component stored in this entity. Inherited from IMyEntity |
GetInventory(int) | Search for inventory component with maching index. Inherited from IMyEntity |
GetPosition() | Inherited from IMyEntity |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!