public ModelSwitchGroup(ConfigNode node, SSTUModelSwitch module) { this.owner = module; this.name = node.GetStringValue("name"); this.defaultModel = node.GetStringValue("defaultModel", string.Empty); this.parentGroup = node.GetStringValue("parentGroup", string.Empty); this.parentNode = node.GetStringValue("parentNode", string.Empty); string[] nodeNames = node.GetStringValues("node"); int len = nodeNames.Length; modelNodes = new ModelNode[len]; for (int i = 0; i < len; i++) { modelNodes[i] = new ModelNode(nodeNames[i], this); nodeMap.Add(modelNodes[i].name, modelNodes[i]); } }