Click or drag to resize
MyDefinitionId Structure

[This is preliminary documentation and is subject to change.]

Prefer getting definition ID using object builder used to create the item. If you have automatic rifle, in its Init method create new MyDefinitionId using TypeId and SubtypeName of object builder. Do not write specific values in code, as data comes from XML and if those change, code needs to change as well.

Namespace: VRage.Game
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
public struct MyDefinitionId

The MyDefinitionId type exposes the following members.

Constructors
  NameDescription
Public methodMyDefinitionId(MyObjectBuilderType)
Initializes a new instance of the MyDefinitionId class
Public methodMyDefinitionId(MyObjectBuilderType, String)
Initializes a new instance of the MyDefinitionId class
Public methodMyDefinitionId(MyObjectBuilderType, MyStringHash)
Initializes a new instance of the MyDefinitionId class
Public methodMyDefinitionId(MyRuntimeObjectBuilderId, MyStringHash)
Initializes a new instance of the MyDefinitionId class
Top
Properties
  NameDescription
Public propertySubtypeName
Top
Methods
Operators
Fields
  NameDescription
Public fieldStatic memberComparer
Public fieldSubtypeId
Public fieldTypeId
Top
See Also