Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.MyDefinitionId

Malware edited this page Dec 25, 2018 · 55 revisions

Index

MyDefinitionId Struct

private public sealed MyDefinitionId
```csharp

**Namespace:** [VRage.Game](VRage.Game)  
**Assembly:** VRage.Game.dll

### Example

### Remarks

###### Fields

|Member|Description|
|---|---|
|[TypeId](VRage.Game.MyDefinitionId.TypeId)||
|[SubtypeId](VRage.Game.MyDefinitionId.SubtypeId)||
|[Comparer](VRage.Game.MyDefinitionId.Comparer)||

###### Properties

|Member|Description|
|---|---|
|[SubtypeName](VRage.Game.MyDefinitionId.SubtypeName)||

###### Methods

|Member|Description|
|---|---|
|[FromContent(MyObjectBuilder_Base)](VRage.Game.MyDefinitionId.FromContent)|Creates a new definition ID from a given content.|
|[Parse(string)](VRage.Game.MyDefinitionId.Parse)|Attempts to create a definition ID from a definition string, which has the form (using ores as an example) "MyObjectBuilder_Ore/Iron". The first part must represent an existing type. If it does not, an exception will be thrown. The second (the subtype) is not enforced. See [TryParse(string, ref MyDefinitionId)](VRage.Game.MyDefinitionId.TryParse) for a parsing method that does not throw an exception.|
|[TryParse(string, ref MyDefinitionId)](VRage.Game.MyDefinitionId.TryParse)|Attempts to create a definition ID from a definition string, which has the form (using ores as an example) "MyObjectBuilder_Ore/Iron". The first part must represent an existing type, while the second (the subtype) is not enforced.|
|[TryParse(string, string, ref MyDefinitionId)](VRage.Game.MyDefinitionId.TryParse)||
|[GetHashCode()](VRage.Game.MyDefinitionId.GetHashCode)||
|[GetHashCodeLong()](VRage.Game.MyDefinitionId.GetHashCodeLong)|Safer hash code. It is unique in more situations than GetHashCode would be, but it may still require full check.|
|[Equals(object)](VRage.Game.MyDefinitionId.Equals)||
|[ToString()](VRage.Game.MyDefinitionId.ToString)||
|[Equals(MyDefinitionId)](VRage.Game.MyDefinitionId.Equals)||

Clone this wiki locally