42 lines
806 B
C#
42 lines
806 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Xml.Serialization;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace RimWorldAnimationStudio
|
|||
|
{
|
|||
|
[Serializable]
|
|||
|
public class SoundDef
|
|||
|
{
|
|||
|
public string defName;
|
|||
|
public int maxSimultaneous;
|
|||
|
public int maxVoices;
|
|||
|
[XmlArray("subSounds"), XmlArrayItem("li")] public List<SubSoundDef> subSounds;
|
|||
|
}
|
|||
|
|
|||
|
[Serializable]
|
|||
|
public class SubSoundDef
|
|||
|
{
|
|||
|
[XmlArray("grains"), XmlArrayItem("li")] public List<AudioGrain> grains;
|
|||
|
public FloatRange volumeRange;
|
|||
|
public FloatRange pitchRange;
|
|||
|
public FloatRange distRange;
|
|||
|
}
|
|||
|
|
|||
|
[Serializable]
|
|||
|
public class AudioGrain
|
|||
|
{
|
|||
|
public string clipPath;
|
|||
|
}
|
|||
|
|
|||
|
[Serializable]
|
|||
|
public class FloatRange
|
|||
|
{
|
|||
|
public float min;
|
|||
|
public float max;
|
|||
|
}
|
|||
|
}
|