Class MyPhysicalInventoryItem
Implements physical item data
Inheritance
System.Object
MyPhysicalInventoryItem
Assembly: VRage.Game.dll
Syntax
public sealed class MyPhysicalInventoryItem : ValueType, IMyInventoryItem, IMyInventoryItem
Constructors
MyPhysicalInventoryItem(MyObjectBuilder_InventoryItem)
Declaration
public MyPhysicalInventoryItem(MyObjectBuilder_InventoryItem item)
Parameters
MyPhysicalInventoryItem(MyFixedPoint, MyObjectBuilder_PhysicalObject, Single)
Declaration
public MyPhysicalInventoryItem(MyFixedPoint amount, MyObjectBuilder_PhysicalObject content, float scale = 1F)
Parameters
Fields
Amount
Declaration
public MyFixedPoint Amount
Field Value
Type |
Description |
VRage.MyFixedPoint |
|
Content
Declaration
[DynamicObjectBuilder(false)]
public MyObjectBuilder_PhysicalObject Content
Field Value
ItemId
Declaration
Field Value
Type |
Description |
System.UInt32 |
|
Scale
Declaration
Field Value
Type |
Description |
System.Single |
|
Methods
GetObjectBuilder()
Declaration
public MyObjectBuilder_InventoryItem GetObjectBuilder()
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Explicit Interface Implementations
IMyInventoryItem.Amount
Declaration
MyFixedPoint IMyInventoryItem.Amount { get; set; }
Returns
Type |
Description |
VRage.MyFixedPoint |
|
IMyInventoryItem.Content
Declaration
MyObjectBuilder_Base IMyInventoryItem.Content { get; set; }
Returns
IMyInventoryItem.ItemId
Declaration
uint IMyInventoryItem.ItemId { get; set; }
Returns
Type |
Description |
System.UInt32 |
|
IMyInventoryItem.Scale
Declaration
float IMyInventoryItem.Scale { get; set; }
Returns
Type |
Description |
System.Single |
|
Implements