public static SceneDesc Read(StreamReader data, StreamWriter outputData, bool write = true) { SceneDesc obj = new SceneDesc(); uint num_scene_types = Utils.readAndWriteUInt32(data, outputData, write); obj.SceneTypes = new List <SceneType>(); for (uint i = 0; i < num_scene_types; i++) { obj.SceneTypes.Add(SceneType.Read(data, outputData, write)); } return(obj); }