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

VRage.Game.MyDefinitionId.TryParse

Malware edited this page Dec 25, 2018 · 19 revisions

IndexMyDefinitionId

csharp[bool](System.Boolean) TryParse([string](System.String) id, ref [MyDefinitionId](VRage.Game.MyDefinitionId) definitionId)##### Summary

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.

Returns

csharp[bool](System.Boolean) TryParse([string](System.String) type, [string](System.String) subtype, ref [MyDefinitionId](VRage.Game.MyDefinitionId) definitionId)

Clone this wiki locally