VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static SettingsTreeNode AVR.Core.AVR_Settings.build_tree ( )
inlinestatic

Builds a tree-structure that contains all settings. Note: This may take a while to complete.

Returns
Root node of the tree

Definition at line 166 of file AVR_Settings.cs.

166  {
167  AVR.Core.AVR_DevConsole.print("Building SettingsTree...");
168  SettingsTreeNode root = new SettingsTreeNode("");
169 
170  foreach(string key in settings.Keys) {
171  string[] dir = key.Split('/').Skip(1).ToArray();
172  add_node(dir, root, settings[key]);
173  }
174 
175  return root;
176  }
static void add_node(string[] dir, SettingsTreeNode node, string value)
static Dictionary< string, string > settings
Dictionary containing all settings by their key. A setting declared as domain = { setting = true } wi...
Definition: AVR_Settings.cs:42