//public Double scaleHack; public cfg(ConfigNode node, Part part) { /*if (node.HasValues("MODE"))*/ { ConfigNode[] nodes = node.GetNodes("MODE"); // Shouldn't need null coalescing as we should always have at least one MODE modes = new mode[nodes.Length]; for (byte i = 0; i < nodes.Length; i++) { modes[i] = new mode(nodes[i], part); } } /* else * { * modes = null; * ScreenMessages.PostScreenMessage("Malformed config node: MODE", 2, ScreenMessageStyle.LOWER_CENTER, true); * }*/ }
// public bool autoSwitch { get; private set; } //public Double scaleHack; public Config(ConfigNode node, Part part) { /*if (node.HasValues("MODE"))*/ { // ConfigNode[] nodes = node.GetNodes("ODFC"); // shouldn't need null coalescing as we should always have at least one ODFC module // Shouldn't need null coalescing as we should always have at least one MODE ConfigNode[] nodes = node.GetNodes("MODE"); modes = new mode[nodes.Length]; for (byte i = 0; i < nodes.Length; i++) { modes[i] = new mode(nodes[i], part); } } /* else * { * modes = null; * Log.dbg("Malformed config node: MODE"); * }*/ }