Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 internal override void ReadSpecific(BinaryReaderEx br)
 {
     SoundType          = br.ReadEnum32 <SndType>();
     SoundID            = br.ReadInt32();
     ChildRegionIndices = br.ReadInt32s(16);
 }
Exemplo n.º 7
0
 /// <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();
 }
Exemplo n.º 8
0
 /// <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];
 }