Difference between revisions of "IMyEntity"

From Space Engineers Wiki
Jump to: navigation, search
(Interface)
 
m (added derived types)
 
Line 46: Line 46:
 
===WorldVolumeHr===
 
===WorldVolumeHr===
 
  [[BoundingSphereD]] WorldVolumeHr { get; }
 
  [[BoundingSphereD]] WorldVolumeHr { get; }
 +
 +
{{Derived Types}}
  
 
[[Category:Programming]][[Category:Interface]]
 
[[Category:Programming]][[Category:Interface]]

Latest revision as of 23:11, 18 October 2020

Summary

Ingame (Programmable Block) interface for all entities.

Methods

GetInventory

Simply get the MyInventoryBase component stored in this entity.

IMyInventory GetInventory();

Search for inventory component with maching index.

IMyInventory GetInventory(int index);

GetPosition

Vector3D GetPosition();

Properties

Components

MyEntityComponentContainer Components { get; }

EntityId

long EntityId { get; }

Name

string Name { get; }

DisplayName

string DisplayName { get; }

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.

bool HasInventory { get; }

InventoryCount

Returns the count of the number of inventories this entity has.

int InventoryCount { get; }

WorldAABB

BoundingBoxD WorldAABB { get; }

WorldAABBHr

BoundingBoxD WorldAABBHr { get; }

WorldMatrix

MatrixD WorldMatrix { get; }

WorldVolume

BoundingSphereD WorldVolume { get; }

WorldVolumeHr

BoundingSphereD WorldVolumeHr { get; }

Derived Types

Inherited by Implemented by