Assembly: VRage.Game.dll

public class MyObjectBuilder_PhysicalObject: MyObjectBuilder_Base

Fields

Member Description
DurabilityHP This is used for GUI to show the amount of health points (durability) of the weapons and tools. This is updated through Durability entity component if entity exists..
Flags
UniqueId Globally unique identifier for tracking specific item instances across inventory transfers. When set (non-empty), this item cannot stack with any other items.

Properties

Member Description
SubtypeId Inherited from MyObjectBuilder_Base
SubtypeName Inherited from MyObjectBuilder_Base
TypeId Inherited from MyObjectBuilder_Base

Constructors

Member Description
MyObjectBuilder_PhysicalObject()
MyObjectBuilder_PhysicalObject(MyItemFlags)

Methods

Member Description
CanStack(MyObjectBuilder_PhysicalObject)
CanStack(MyObjectBuilderType, MyStringHash, MyItemFlags)
GetInstanceOnStackSplit() Since 204 items like gas containers can stack. All items that has data, that can change should override this method, and return a clone.
GetObjectId()
ShouldSerializeDurabilityHP()
ShouldSerializeUniqueId()
Clone() Inherited from MyObjectBuilder_Base
Equals(MyObjectBuilder_Base) Inherited from MyObjectBuilder_Base
ShouldSerializeSubtypeId() Inherited from MyObjectBuilder_Base

Inheritance: MyObjectBuilder_Base

Inheritors: