Table of Contents

Class CwSoundEmitterVanilla

Namespace
WoWLib.Formats.ADT.Chunks
Assembly
WoWLib.dll

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

soundPointId uint
soundNameId uint
position C3Vector
minDistance float
maxDistance float
cutoffDistance float
startTime ushort
endTime ushort
mode ushort
loopCountMin byte
loopCountMax byte
groupSilenceMin ushort
groupSilenceMax ushort
playInstancesMin ushort
playInstancesMax ushort
interSoundGapMin ushort
interSoundGapMax ushort

CwSoundEmitterVanilla(CwSoundEmitterVanilla)

Copy-construct: a deep copy of other (the C++ copy constructor).

public CwSoundEmitterVanilla(CwSoundEmitterVanilla other)

Parameters

other CwSoundEmitterVanilla

Properties

CutoffDistance

Cutoff distance.

public float CutoffDistance { get; set; }

Property Value

float

EndTime

Daily end time, minutes.

public ushort EndTime { get; set; }

Property Value

ushort

GroupSilenceMax

Maximum group silence, milliseconds.

public ushort GroupSilenceMax { get; set; }

Property Value

ushort

GroupSilenceMin

Minimum group silence, milliseconds.

public ushort GroupSilenceMin { get; set; }

Property Value

ushort

InterSoundGapMax

Maximum gap between sounds, milliseconds.

public ushort InterSoundGapMax { get; set; }

Property Value

ushort

InterSoundGapMin

Minimum gap between sounds, milliseconds.

public ushort InterSoundGapMin { get; set; }

Property Value

ushort

LoopCountMax

Maximum loop count.

public byte LoopCountMax { get; set; }

Property Value

byte

LoopCountMin

Minimum loop count.

public byte LoopCountMin { get; set; }

Property Value

byte

MaxDistance

Audible-range distance.

public float MaxDistance { get; set; }

Property Value

float

MinDistance

Full-volume distance.

public float MinDistance { get; set; }

Property Value

float

Mode

Emitter mode.

public ushort Mode { get; set; }

Property Value

ushort

PlayInstancesMax

Maximum concurrent play instances.

public ushort PlayInstancesMax { get; set; }

Property Value

ushort

PlayInstancesMin

Minimum concurrent play instances.

public ushort PlayInstancesMin { get; set; }

Property Value

ushort

Position

The emitter position, in world coordinates.

public C3Vector Position { get; set; }

Property Value

C3Vector

SoundNameId

The sound (a SoundEntries foreign key).

public uint SoundNameId { get; set; }

Property Value

uint

SoundPointId

Sequential emitter id, unique per map.

public uint SoundPointId { get; set; }

Property Value

uint

StartTime

Daily start time, minutes.

public ushort StartTime { get; set; }

Property Value

ushort

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(CwSoundEmitterVanilla?, CwSoundEmitterVanilla?)

public static bool operator ==(CwSoundEmitterVanilla? l, CwSoundEmitterVanilla? r)

Parameters

l CwSoundEmitterVanilla
r CwSoundEmitterVanilla

Returns

bool

operator !=(CwSoundEmitterVanilla?, CwSoundEmitterVanilla?)

public static bool operator !=(CwSoundEmitterVanilla? l, CwSoundEmitterVanilla? r)

Parameters

l CwSoundEmitterVanilla
r CwSoundEmitterVanilla

Returns

bool