Space Engineers
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Sandbox.Engine.Utils.MyConfigBase Class Reference
Inheritance diagram for Sandbox.Engine.Utils.MyConfigBase:
Sandbox.Engine.Utils.MyConfig

Public Member Functions

 MyConfigBase (string fileName)
 
void Save ()
 
void Load ()
 

Protected Member Functions

string GetParameterValue (string parameterName)
 
SerializableDictionary< string, object > GetParameterValueDictionary (string parameterName)
 
GetParameterValueT< T > (string parameterName)
 
Vector3I GetParameterValueVector3I (string parameterName)
 
void SetParameterValue (string parameterName, string value)
 
void SetParameterValue (string parameterName, float value)
 
void SetParameterValue (string parameterName, bool?value)
 
void SetParameterValue (string parameterName, int value)
 
void SetParameterValue (string parameterName, int?value)
 
void SetParameterValue (string parameterName, Vector3I value)
 
void RemoveParameterValue (string parameterName)
 
GetOptionalEnum< T > (string name)
 
void SetOptionalEnum< T > (string name, T?value)
 

Protected Attributes

readonly SerializableDictionary< string, object > m_values = new SerializableDictionary<string, object>()
 

Detailed Description

Definition at line 23 of file MyConfigBase.cs.

Constructor & Destructor Documentation

Sandbox.Engine.Utils.MyConfigBase.MyConfigBase ( string  fileName)
inline

Definition at line 30 of file MyConfigBase.cs.

Member Function Documentation

T Sandbox.Engine.Utils.MyConfigBase.GetOptionalEnum< T > ( string  name)
inlineprotected
Type Constraints
T :struct 
T :IComparable 
T :IFormattable 
T :IConvertible 

Definition at line 132 of file MyConfigBase.cs.

string Sandbox.Engine.Utils.MyConfigBase.GetParameterValue ( string  parameterName)
inlineprotected

Definition at line 36 of file MyConfigBase.cs.

SerializableDictionary<string, object> Sandbox.Engine.Utils.MyConfigBase.GetParameterValueDictionary ( string  parameterName)
inlineprotected

Definition at line 50 of file MyConfigBase.cs.

T Sandbox.Engine.Utils.MyConfigBase.GetParameterValueT< T > ( string  parameterName)
inlineprotected

Definition at line 64 of file MyConfigBase.cs.

Vector3I Sandbox.Engine.Utils.MyConfigBase.GetParameterValueVector3I ( string  parameterName)
inlineprotected

Definition at line 78 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.Load ( )
inline

Definition at line 216 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.RemoveParameterValue ( string  parameterName)
inlineprotected

Definition at line 127 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.Save ( )
inline

Definition at line 172 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetOptionalEnum< T > ( string  name,
T?  value 
)
inlineprotected
Type Constraints
T :struct 
T :IComparable 
T :IFormattable 
T :IConvertible 

Definition at line 152 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetParameterValue ( string  parameterName,
string  value 
)
inlineprotected

Definition at line 93 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetParameterValue ( string  parameterName,
float  value 
)
inlineprotected

Definition at line 99 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetParameterValue ( string  parameterName,
bool?  value 
)
inlineprotected

Definition at line 105 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetParameterValue ( string  parameterName,
int  value 
)
inlineprotected

Definition at line 111 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetParameterValue ( string  parameterName,
int?  value 
)
inlineprotected

Definition at line 117 of file MyConfigBase.cs.

void Sandbox.Engine.Utils.MyConfigBase.SetParameterValue ( string  parameterName,
Vector3I  value 
)
inlineprotected

Definition at line 122 of file MyConfigBase.cs.

Member Data Documentation

readonly SerializableDictionary<string, object> Sandbox.Engine.Utils.MyConfigBase.m_values = new SerializableDictionary<string, object>()
protected

Definition at line 26 of file MyConfigBase.cs.


The documentation for this class was generated from the following file: