Class MyItemType
Inheritance
System.Object
MyItemType
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
Properties
SubtypeId
Declaration
public string SubtypeId { get; }
Property Value
Type |
Description |
System.String |
|
TypeId
Declaration
public string TypeId { get; }
Property Value
Type |
Description |
System.String |
|
Methods
CompareTo(MyItemType)
Declaration
public int CompareTo(MyItemType other)
Parameters
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
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
MakeComponent(String)
Declaration
public static MyItemType MakeComponent(string subTypeId)
Parameters
Type |
Name |
Description |
System.String |
subTypeId |
|
Returns
MakeIngot(String)
Declaration
public static MyItemType MakeIngot(string subTypeId)
Parameters
Type |
Name |
Description |
System.String |
subTypeId |
|
Returns
MakeOre(String)
Declaration
public static MyItemType MakeOre(string subTypeId)
Parameters
Type |
Name |
Description |
System.String |
subTypeId |
|
Returns
Declaration
public static MyItemType MakeTool(string subTypeId)
Parameters
Type |
Name |
Description |
System.String |
subTypeId |
|
Returns
Parse(String)
Declaration
public static MyItemType Parse(string itemType)
Parameters
Type |
Name |
Description |
System.String |
itemType |
|
Returns
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
Returns
Type |
Description |
System.Boolean |
|
Implicit(MyItemType to MyDefinitionId)
Declaration
public static implicit operator MyDefinitionId(MyItemType itemType)
Parameters
Returns
Implicit(MyDefinitionId to MyItemType)
Declaration
public static implicit operator MyItemType(MyDefinitionId definitionId)
Parameters
Returns
Implicit(MyObjectBuilder_PhysicalObject to MyItemType)
Declaration
public static implicit operator MyItemType(MyObjectBuilder_PhysicalObject ob)
Parameters
Returns
Implicit(SerializableDefinitionId to MyItemType)
Declaration
public static implicit operator MyItemType(SerializableDefinitionId definitionId)
Parameters
Returns
Inequality(MyItemType, MyItemType)
Declaration
public static bool operator !=(MyItemType a, MyItemType b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods