private void SaveTree(RoomNode node) { node.Save(); modifiedNodes.Add(node); foreach (RoomNode subNode in node.Connections) { SaveTree(subNode); } }