-
Notifications
You must be signed in to change notification settings - Fork 123
VRage.Game.ModAPI.Ingame.Utilities.MyIni
← Index
Namespace: VRage.Game.ModAPI.Ingame.Utilities
Assembly: VRage.Game.dll
A configuration class to parse and create a text string resembling the old fashioned INI format, but with support for multiline values. Do not forget that parsing is a time-consuming task. Keep your parsing to a minimum.
Using MyIni to deal with CustomData end-user configuration:
The CustomData:
[kernel] output=DebugTextPanel bootText= |-- HAL9000 -- |Good morning, Dave.
The code:
MyIni _ini = new MyIni(); IMyTextPanel _outputTextPanel; public Program() { MyIniParseResult result; if (!_ini.TryParse(Me.CustomData, out result) { Echo(
This class is NOT THREAD SAFE as it's optimized for programmable block use.
| Member | Description |
|---|---|
string EndContent |
|
string EndComment |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!