VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes | List of all members
AVR.Core.AVR_Settings Class Reference

Contains constan values, settings etc. which can all be set through *.avr files. Duplicate settings will be overwritten in alphabetical order of the filename. More...

Static Public Member Functions

static void initialize ()
 Initialize settings. Calling multiple times will have no effect, use reconfigure() if you want to re-parse all settingfiles. More...
 
static void reconfigure ()
 Re-initializes settings. Note: This will re-parse all settings files and might take a little. More...
 
static KeyCode get_key (string token)
 Get a registered setting of the type KeyCode. More...
 
static int get_int (string token)
 Get a registered setting of the type int. More...
 
static string get_string (string token)
 Get a registered setting of the type string. More...
 
static float get_float (string token)
 Get a registered setting of the type float. More...
 
static bool get_bool (string token)
 Get a registered setting of the type bool. More...
 
static bool token_exists (string token)
 Check if a given token is registered as a setting. More...
 
static void set (string token, object value)
 Set a setting with a specific token to a specific value. More...
 
static SettingsTreeNode build_tree ()
 Builds a tree-structure that contains all settings. Note: This may take a while to complete. More...
 

Static Public Attributes

static Dictionary< string, string > settings = new Dictionary<string, string>()
 Dictionary containing all settings by their key. A setting declared as domain = { setting = true } will be retrievable with the token /domain/setting More...
 

Static Private Member Functions

static void add_node (string[] dir, SettingsTreeNode node, string value)
 

Static Private Attributes

static bool initialized = false
 

Detailed Description

Contains constan values, settings etc. which can all be set through *.avr files. Duplicate settings will be overwritten in alphabetical order of the filename.

Definition at line 14 of file AVR_Settings.cs.