protected override void load(ConfigNode node) { base.load(node); ConfigNode stepNode = node.GetNode(ExperimentStep.CONFIG_NODE_NAME); step = ExperimentStep.getExperimentStepFromConfigNode(stepNode, this); }
protected override void load(ConfigNode node) { base.load(node); activeStep = int.Parse(node.GetValue(ACTIVE_VALUE)); ConfigNode[] stepNodes = node.GetNodes(ExperimentStep.CONFIG_NODE_NAME); steps = new T[stepNodes.Length]; foreach (ConfigNode stepNode in stepNodes) { T step = (T)ExperimentStep.getExperimentStepFromConfigNode(stepNode, this); steps[step.getIndex()] = step; } }
protected override void load(ConfigNode node) { base.load(node); activeStep = NE_Helper.GetValueAsInt(node, ACTIVE_VALUE); ConfigNode[] stepNodes = node.GetNodes(ExperimentStep.CONFIG_NODE_NAME); steps = new T[stepNodes.Length]; for (int idx = 0, count = stepNodes.Length; idx < count; idx++) { var stepNode = stepNodes[idx]; T step = (T)ExperimentStep.getExperimentStepFromConfigNode(stepNode, this); steps[step.getIndex()] = step; } }