Space Engineers
|
Inherited by Sandbox.Definitions.MyDefinitionManager.DefinitionSet.
Public Member Functions | |
void | AddDefinition (MyDefinitionBase def) |
bool | AddOrRelaceDefinition (MyDefinitionBase def) |
void | RemoveDefinition (ref MyDefinitionId defId) |
IEnumerable< T > | GetDefinitionsOfType< T > () |
IEnumerable< T > | GetDefinitionsOfTypeAndSubtypes< T > () |
bool | ContainsDefinition (MyDefinitionId id) |
T | GetDefinition< T > (MyStringHash subtypeId) |
T | GetDefinition< T > (MyDefinitionId id) |
virtual void | OverrideBy (MyDefinitionSet definitionSet) |
void | Clear () |
Public Attributes | |
MyModContext | Context |
readonly Dictionary< Type, Dictionary< MyStringHash, MyDefinitionBase > > | Definitions = new Dictionary<Type, Dictionary<MyStringHash, MyDefinitionBase>>() |
Definition at line 10 of file MyDefinitionSet.cs.
|
inline |
Add a new definition to the set.
Crashes if existing.
Definition at line 21 of file MyDefinitionSet.cs.
|
inline |
Add or replace an existing definition.
Definition at line 36 of file MyDefinitionSet.cs.
|
inline |
Definition at line 167 of file MyDefinitionSet.cs.
|
inline |
Definition at line 95 of file MyDefinitionSet.cs.
|
inline |
T | : | MyDefinitionBase |
Definition at line 102 of file MyDefinitionSet.cs.
|
inline |
T | : | MyDefinitionBase |
Definition at line 114 of file MyDefinitionSet.cs.
|
inline |
Get all definitions of a given type.
T | : | MyDefinitionBase |
Definition at line 67 of file MyDefinitionSet.cs.
|
inline |
Get all definitions of a given type.
T | : | MyDefinitionBase |
Definition at line 79 of file MyDefinitionSet.cs.
|
inlinevirtual |
Override the contents of this definition set with another.
Definition at line 128 of file MyDefinitionSet.cs.
|
inline |
Remove a definition if on the set.
Definition at line 55 of file MyDefinitionSet.cs.
MyModContext VRage.Game.MyDefinitionSet.Context |
Definition at line 12 of file MyDefinitionSet.cs.
readonly Dictionary<Type, Dictionary<MyStringHash, MyDefinitionBase> > VRage.Game.MyDefinitionSet.Definitions = new Dictionary<Type, Dictionary<MyStringHash, MyDefinitionBase>>() |
Definition at line 14 of file MyDefinitionSet.cs.