public static Vector3[] ReadVector3Array(TWXmlNode node) { if (node.Value == "NULL") { return(null); } int count = node.GetAttributeInt("Count"); Vector3[] array = new Vector3[count]; TWXmlNode[] vectorNodes = node.GetChildNodes(); int i = 0; foreach (TWXmlNode nodeVector in vectorNodes) { Vector3 v = new Vector3(); v.X = float.Parse(nodeVector.GetAttribute("X")); v.Y = float.Parse(nodeVector.GetAttribute("Y")); v.Z = float.Parse(nodeVector.GetAttribute("Z")); array[i] = v; i++; } return(array); }