public static SoundDesc Read(StreamReader data, StreamWriter outputData, bool write = true) { SoundDesc obj = new SoundDesc(); uint num_stb_desc = Utils.readAndWriteUInt32(data, outputData, write); obj.STBDesc = new List <AmbientSTBDesc>(); for (uint i = 0; i < num_stb_desc; i++) { obj.STBDesc.Add(AmbientSTBDesc.Read(data, outputData, write)); } return(obj); }
public static AmbientSTBDesc Read(StreamReader data, StreamWriter outputData, bool write = true) { AmbientSTBDesc obj = new AmbientSTBDesc(); obj.STBId = Utils.readAndWriteUInt32(data, outputData, write); uint num_ambient_sounds = Utils.readAndWriteUInt32(data, outputData, write); obj.AmbientSounds = new List <AmbientSoundDesc>(); for (uint i = 0; i < num_ambient_sounds; i++) { obj.AmbientSounds.Add(AmbientSoundDesc.Read(data, outputData, write)); } return(obj); }