// Fill missing SCLA entries with default values public void FillSCLA(uint amount) { bool indexFound = false; // Go through and add each index with default values as necessary for (uint i = 0; i < amount; i++) { indexFound = false; // Figure out if child already exists for (int j = 0; j < Children.Count; j++) { if (indexFound == false) { if (((SCLAEntryNode)Children[j]).getSCLAIndex() == i) { indexFound = true; } } } if (indexFound == false) { SCLAEntryNode node = new SCLAEntryNode(i); InsertChild(node, true, (int)i); } } }
public SCLANode(uint newNodesToCreate) { for (uint i = 0; i < newNodesToCreate; i++) { SCLAEntryNode node = new SCLAEntryNode(i); AddChild(node); } }