Show / Hide Table of Contents

Class MyItemType

Use by MyInventoryItem

Inheritance
System.Object
MyItemType
Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
Syntax
public sealed class MyItemType : ValueType, IComparable<MyItemType>, IEquatable<MyItemType>

Constructors

MyItemType(String, String)

Declaration
public MyItemType(string typeId, string subtypeId)
Parameters
Type Name Description
System.String typeId
System.String subtypeId

MyItemType(MyObjectBuilderType, MyStringHash)

Declaration
public MyItemType(MyObjectBuilderType typeId, MyStringHash subTypeIdHash)
Parameters
Type Name Description
MyObjectBuilderType typeId
MyStringHash subTypeIdHash

Properties

SubtypeId

Gets Subtype of Item

Declaration
public string SubtypeId { get; }
Property Value
Type Description
System.String

TypeId

Gets TypeId of Item

Declaration
public string TypeId { get; }
Property Value
Type Description
System.String

Methods

CompareTo(MyItemType)

Declaration
public int CompareTo(MyItemType other)
Parameters
Type Name Description
MyItemType other
Returns
Type Description
System.Int32

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

Equals(MyItemType)

Declaration
public bool Equals(MyItemType other)
Parameters
Type Name Description
MyItemType other
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

MakeAmmo(String)

Declaration
public static MyItemType MakeAmmo(string subTypeId)
Parameters
Type Name Description
System.String subTypeId
Returns
Type Description
MyItemType

MakeComponent(String)

Declaration
public static MyItemType MakeComponent(string subTypeId)
Parameters
Type Name Description
System.String subTypeId
Returns
Type Description
MyItemType

MakeIngot(String)

Declaration
public static MyItemType MakeIngot(string subTypeId)
Parameters
Type Name Description
System.String subTypeId
Returns
Type Description
MyItemType

MakeOre(String)

Declaration
public static MyItemType MakeOre(string subTypeId)
Parameters
Type Name Description
System.String subTypeId
Returns
Type Description
MyItemType

MakeTool(String)

Declaration
public static MyItemType MakeTool(string subTypeId)
Parameters
Type Name Description
System.String subTypeId
Returns
Type Description
MyItemType

Parse(String)

Declaration
public static MyItemType Parse(string itemType)
Parameters
Type Name Description
System.String itemType
Returns
Type Description
MyItemType

ToString()

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

Operators

Equality(MyItemType, MyItemType)

Declaration
public static bool operator ==(MyItemType a, MyItemType b)
Parameters
Type Name Description
MyItemType a
MyItemType b
Returns
Type Description
System.Boolean

Implicit(MyItemType to MyDefinitionId)

Declaration
public static implicit operator MyDefinitionId(MyItemType itemType)
Parameters
Type Name Description
MyItemType itemType
Returns
Type Description
MyDefinitionId

Implicit(MyDefinitionId to MyItemType)

Declaration
public static implicit operator MyItemType(MyDefinitionId definitionId)
Parameters
Type Name Description
MyDefinitionId definitionId
Returns
Type Description
MyItemType

Implicit(MyObjectBuilder_PhysicalObject to MyItemType)

Declaration
public static implicit operator MyItemType(MyObjectBuilder_PhysicalObject ob)
Parameters
Type Name Description
MyObjectBuilder_PhysicalObject ob
Returns
Type Description
MyItemType

Implicit(SerializableDefinitionId to MyItemType)

Declaration
public static implicit operator MyItemType(SerializableDefinitionId definitionId)
Parameters
Type Name Description
SerializableDefinitionId definitionId
Returns
Type Description
MyItemType

Inequality(MyItemType, MyItemType)

Declaration
public static bool operator !=(MyItemType a, MyItemType b)
Parameters
Type Name Description
MyItemType a
MyItemType b
Returns
Type Description
System.Boolean

Extension Methods

MyPhysicalInventoryItemExtensions_ModAPI.GetItemInfo(MyItemType)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾