Class CwSoundEmitter
A terrain sound emitter (MCSE, 28 bytes): a SoundEntriesAdvanced foreign key and a position/size pair placing an ambient sound in the cell.
public class CwSoundEmitter : IDisposable
- Inheritance
-
CwSoundEmitter
- Implements
- Inherited Members
Constructors
CwSoundEmitter()
public CwSoundEmitter()
CwSoundEmitter(uint, C3Vector, C3Vector)
public CwSoundEmitter(uint entryId, C3Vector position, C3Vector size)
Parameters
CwSoundEmitter(CwSoundEmitter)
Copy-construct: a deep copy of other (the C++ copy constructor).
public CwSoundEmitter(CwSoundEmitter other)
Parameters
otherCwSoundEmitter
Properties
EntryId
The sound entry (a SoundEntriesAdvanced foreign key).
public uint EntryId { get; set; }
Property Value
Position
The emitter position.
public C3Vector Position { get; set; }
Property Value
Size
The emitter size / extents.
public C3Vector Size { 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 ==(CwSoundEmitter?, CwSoundEmitter?)
public static bool operator ==(CwSoundEmitter? l, CwSoundEmitter? r)
Parameters
Returns
operator !=(CwSoundEmitter?, CwSoundEmitter?)
public static bool operator !=(CwSoundEmitter? l, CwSoundEmitter? r)