public ModelTextureSet(ConfigNode node) { name = node.GetStringValue("name"); ConfigNode[] texNodes = node.GetNodes("TEXTURE"); int len = texNodes.Length; textureData = new ModelTextureData[len]; for (int i = 0; i < len; i++) { textureData[i] = new ModelTextureData(texNodes[i]); } }