Class CwSoundEmitterVanilla
A pre-WotLK terrain sound emitter (MCSE, 52 bytes): a SoundEntries foreign key plus the inline distance/time/loop parameters that later moved into SoundEntriesAdvanced.
public class CwSoundEmitterVanilla : IDisposable
- Inheritance
-
CwSoundEmitterVanilla
- Implements
- Inherited Members
Constructors
CwSoundEmitterVanilla()
public CwSoundEmitterVanilla()
CwSoundEmitterVanilla(uint, uint, C3Vector, float, float, float, ushort, ushort, ushort, byte, byte, ushort, ushort, ushort, ushort, ushort, ushort)
public CwSoundEmitterVanilla(uint soundPointId, uint soundNameId, C3Vector position, float minDistance, float maxDistance, float cutoffDistance, ushort startTime, ushort endTime, ushort mode, byte loopCountMin, byte loopCountMax, ushort groupSilenceMin, ushort groupSilenceMax, ushort playInstancesMin, ushort playInstancesMax, ushort interSoundGapMin, ushort interSoundGapMax)
Parameters
soundPointIduintsoundNameIduintpositionC3VectorminDistancefloatmaxDistancefloatcutoffDistancefloatstartTimeushortendTimeushortmodeushortloopCountMinbyteloopCountMaxbytegroupSilenceMinushortgroupSilenceMaxushortplayInstancesMinushortplayInstancesMaxushortinterSoundGapMinushortinterSoundGapMaxushort
CwSoundEmitterVanilla(CwSoundEmitterVanilla)
Copy-construct: a deep copy of other (the C++ copy constructor).
public CwSoundEmitterVanilla(CwSoundEmitterVanilla other)
Parameters
otherCwSoundEmitterVanilla
Properties
CutoffDistance
Cutoff distance.
public float CutoffDistance { get; set; }
Property Value
EndTime
Daily end time, minutes.
public ushort EndTime { get; set; }
Property Value
GroupSilenceMax
Maximum group silence, milliseconds.
public ushort GroupSilenceMax { get; set; }
Property Value
GroupSilenceMin
Minimum group silence, milliseconds.
public ushort GroupSilenceMin { get; set; }
Property Value
InterSoundGapMax
Maximum gap between sounds, milliseconds.
public ushort InterSoundGapMax { get; set; }
Property Value
InterSoundGapMin
Minimum gap between sounds, milliseconds.
public ushort InterSoundGapMin { get; set; }
Property Value
LoopCountMax
Maximum loop count.
public byte LoopCountMax { get; set; }
Property Value
LoopCountMin
Minimum loop count.
public byte LoopCountMin { get; set; }
Property Value
MaxDistance
Audible-range distance.
public float MaxDistance { get; set; }
Property Value
MinDistance
Full-volume distance.
public float MinDistance { get; set; }
Property Value
Mode
Emitter mode.
public ushort Mode { get; set; }
Property Value
PlayInstancesMax
Maximum concurrent play instances.
public ushort PlayInstancesMax { get; set; }
Property Value
PlayInstancesMin
Minimum concurrent play instances.
public ushort PlayInstancesMin { get; set; }
Property Value
Position
The emitter position, in world coordinates.
public C3Vector Position { get; set; }
Property Value
SoundNameId
The sound (a SoundEntries foreign key).
public uint SoundNameId { get; set; }
Property Value
SoundPointId
Sequential emitter id, unique per map.
public uint SoundPointId { get; set; }
Property Value
StartTime
Daily start time, minutes.
public ushort StartTime { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(CwSoundEmitterVanilla?, CwSoundEmitterVanilla?)
public static bool operator ==(CwSoundEmitterVanilla? l, CwSoundEmitterVanilla? r)
Parameters
Returns
operator !=(CwSoundEmitterVanilla?, CwSoundEmitterVanilla?)
public static bool operator !=(CwSoundEmitterVanilla? l, CwSoundEmitterVanilla? r)