public static AmbientSoundDesc Read(DatReader datReader) { AmbientSoundDesc obj = new AmbientSoundDesc(); obj.SType = datReader.ReadUInt32(); obj.Volume = datReader.ReadSingle(); obj.BaseChance = datReader.ReadSingle(); obj.MinRate = datReader.ReadSingle(); obj.MaxRate = datReader.ReadSingle(); return(obj); }
public static AmbientSTBDesc Read(DatReader datReader) { AmbientSTBDesc obj = new AmbientSTBDesc(); obj.STBId = datReader.ReadUInt32(); uint num_ambient_sounds = datReader.ReadUInt32(); for (uint i = 0; i < num_ambient_sounds; i++) { obj.AmbientSounds.Add(AmbientSoundDesc.Read(datReader)); } return(obj); }