Show / Hide Table of Contents

Class MyObjectBuilder_PhysicalObject

Inheritance
System.Object
MyObjectBuilder_Base
MyObjectBuilder_PhysicalObject
MyObjectBuilder_Datapad
MyObjectBuilder_GasContainerObject
MyObjectBuilder_Package
MyObjectBuilder_ZoneChipObject
MyObjectBuilder_AmmoMagazine
MyObjectBuilder_BlockItem
MyObjectBuilder_Component
MyObjectBuilder_Ingot
MyObjectBuilder_Ore
MyObjectBuilder_PhysicalGunObject
MyObjectBuilder_TreeObject
MyObjectBuilder_UsableItem
Inherited Members
MyObjectBuilder_Base.ShouldSerializeSubtypeId()
MyObjectBuilder_Base.Clone()
MyObjectBuilder_Base.Equals(MyObjectBuilder_Base)
MyObjectBuilder_Base.SubtypeId
MyObjectBuilder_Base.SubtypeName
MyObjectBuilder_Base.TypeId
Namespace: VRage.Game
Assembly: VRage.Game.dll
Syntax
[MyObjectBuilderDefinition]
public class MyObjectBuilder_PhysicalObject : MyObjectBuilder_Base

Constructors

MyObjectBuilder_PhysicalObject()

Declaration
public MyObjectBuilder_PhysicalObject()

MyObjectBuilder_PhysicalObject(MyItemFlags)

Declaration
public MyObjectBuilder_PhysicalObject(MyItemFlags flags)
Parameters
Type Name Description
MyItemFlags flags

Fields

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..

Declaration
public Nullable<float> DurabilityHP
Field Value
Type Description
System.Nullable<System.Single>

Flags

Declaration
public MyItemFlags Flags
Field Value
Type Description
MyItemFlags

Methods

CanStack(MyObjectBuilder_PhysicalObject)

Declaration
public virtual bool CanStack(MyObjectBuilder_PhysicalObject a)
Parameters
Type Name Description
MyObjectBuilder_PhysicalObject a
Returns
Type Description
System.Boolean

CanStack(MyObjectBuilderType, MyStringHash, MyItemFlags)

Declaration
public virtual bool CanStack(MyObjectBuilderType typeId, MyStringHash subtypeId, MyItemFlags flags)
Parameters
Type Name Description
MyObjectBuilderType typeId
MyStringHash subtypeId
MyItemFlags flags
Returns
Type Description
System.Boolean

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.

Declaration
public virtual MyObjectBuilder_PhysicalObject GetInstanceOnStackSplit()
Returns
Type Description
MyObjectBuilder_PhysicalObject

This or clone of this object

GetObjectId()

Declaration
public virtual MyDefinitionId GetObjectId()
Returns
Type Description
MyDefinitionId

ShouldSerializeDurabilityHP()

Declaration
public bool ShouldSerializeDurabilityHP()
Returns
Type Description
System.Boolean

Extension Methods

MyObjectBuilderExtensions.GetId(MyObjectBuilder_Base)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾