Show / Hide Table of Contents

Class MyPhysicalInventoryItem

Implements physical item data

Inheritance
System.Object
MyPhysicalInventoryItem
Implements
IMyInventoryItem
IMyInventoryItem
Namespace: VRage.Game.Entity
Assembly: VRage.Game.dll
Syntax
public sealed class MyPhysicalInventoryItem : ValueType, IMyInventoryItem, IMyInventoryItem

Constructors

MyPhysicalInventoryItem(MyObjectBuilder_InventoryItem)

Declaration
public MyPhysicalInventoryItem(MyObjectBuilder_InventoryItem item)
Parameters
Type Name Description
MyObjectBuilder_InventoryItem item

MyPhysicalInventoryItem(MyFixedPoint, MyObjectBuilder_PhysicalObject, Single)

Declaration
public MyPhysicalInventoryItem(MyFixedPoint amount, MyObjectBuilder_PhysicalObject content, float scale = 1F)
Parameters
Type Name Description
VRage.MyFixedPoint amount
MyObjectBuilder_PhysicalObject content
System.Single scale

Fields

Amount

Declaration
public MyFixedPoint Amount
Field Value
Type Description
VRage.MyFixedPoint

Content

Declaration
[DynamicObjectBuilder(false)]
public MyObjectBuilder_PhysicalObject Content
Field Value
Type Description
MyObjectBuilder_PhysicalObject

ItemId

Declaration
public uint ItemId
Field Value
Type Description
System.UInt32

Scale

Declaration
public float Scale
Field Value
Type Description
System.Single

Methods

GetObjectBuilder()

Declaration
public MyObjectBuilder_InventoryItem GetObjectBuilder()
Returns
Type Description
MyObjectBuilder_InventoryItem

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Explicit Interface Implementations

IMyInventoryItem.Amount

Gets or Sets Amount

Declaration
MyFixedPoint IMyInventoryItem.Amount { get; set; }
Returns
Type Description
VRage.MyFixedPoint

IMyInventoryItem.Content

Gets or Sets Content

Declaration
MyObjectBuilder_Base IMyInventoryItem.Content { get; set; }
Returns
Type Description
MyObjectBuilder_Base

IMyInventoryItem.ItemId

Gets or Sets Item Id

Declaration
uint IMyInventoryItem.ItemId { get; set; }
Returns
Type Description
System.UInt32

IMyInventoryItem.Scale

Gets or Sets Scale

Declaration
float IMyInventoryItem.Scale { get; set; }
Returns
Type Description
System.Single

Implements

IMyInventoryItem
IMyInventoryItem
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾