public SoundProp(int pId, string pName, int pPriority, bool playInLoop, SndType pType, int vol) { id = pId; name = pName; priority = pPriority; type = pType; loop = playInLoop; volume = vol; }
public SoundProp(int pId, string pName, int pPriority, int vol) { id = pId; name = pName; priority = pPriority; type = DEF_SND_TYPE; loop = DEF_LOOP_VALUE; volume = vol; }
public SoundProp() { this.priority = DEF_PRIORITY; this.type = DEF_SND_TYPE; this.loop = DEF_LOOP_VALUE; this.volume = DEF_VOLUME; this.pitch = DEF_PITCH; this.pan = DEF_PAN; this.minDistance = DEF_MIN_DISTANCE; this.maxDistance = DEF_MAX_DISTANCE; }
public SoundProp(int sndId, string name, int priority, int volume) { this.id = sndId; this.name = name; this.priority = priority; this.loop = DEF_LOOP_VALUE; this.type = DEF_SND_TYPE; this.volume = volume; this.pitch = DEF_PITCH; this.pan = DEF_PAN; this.minDistance = DEF_MIN_DISTANCE; this.maxDistance = DEF_MAX_DISTANCE; }
public SoundProp(int sndId, string name, int priority, bool loop, SndType type, int volume) { this.id = sndId; this.name = name; this.priority = priority; this.loop = loop; this.type = type; this.volume = volume; this.pitch = DEF_PITCH; this.pan = DEF_PAN; this.minDistance = DEF_MIN_DISTANCE; this.maxDistance = DEF_MAX_DISTANCE; }
internal override void ReadSpecific(BinaryReaderEx br) { SoundType = br.ReadEnum32 <SndType>(); SoundID = br.ReadInt32(); ChildRegionIndices = br.ReadInt32s(16); }
/// <summary> /// Creates a new Sound region with values copied from another. /// </summary> public Sound(Sound clone) : base(clone) { SoundType = clone.SoundType; SoundID = clone.SoundID; ChildRegionNames = (string[])clone.ChildRegionNames.Clone(); }
/// <summary> /// Creates a new Sound with the given name. /// </summary> public Sound(string name) : base(name, true) { SoundType = SndType.Environment; SoundID = 0; ChildRegionNames = new string[16]; }