Files
BH3/Assets/Plugins/Assembly-CSharp-firstpass/EnvelopePoint.cs
2025-08-13 09:26:42 +08:00

71 lines
1.2 KiB
C#

using System;
public class EnvelopePoint : IDisposable
{
private IntPtr swigCPtr;
protected bool swigCMemOwn;
public uint uPosition
{
get
{
return AkSoundEnginePINVOKE.CSharp_EnvelopePoint_uPosition_get(swigCPtr);
}
set
{
AkSoundEnginePINVOKE.CSharp_EnvelopePoint_uPosition_set(swigCPtr, value);
}
}
public ushort uAttenuation
{
get
{
return AkSoundEnginePINVOKE.CSharp_EnvelopePoint_uAttenuation_get(swigCPtr);
}
set
{
AkSoundEnginePINVOKE.CSharp_EnvelopePoint_uAttenuation_set(swigCPtr, value);
}
}
internal EnvelopePoint(IntPtr cPtr, bool cMemoryOwn)
{
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public EnvelopePoint()
: this(AkSoundEnginePINVOKE.CSharp_new_EnvelopePoint(), true)
{
}
internal static IntPtr getCPtr(EnvelopePoint obj)
{
return (obj != null) ? obj.swigCPtr : IntPtr.Zero;
}
~EnvelopePoint()
{
Dispose();
}
public virtual void Dispose()
{
lock (this)
{
if (swigCPtr != IntPtr.Zero)
{
if (swigCMemOwn)
{
swigCMemOwn = false;
AkSoundEnginePINVOKE.CSharp_delete_EnvelopePoint(swigCPtr);
}
swigCPtr = IntPtr.Zero;
}
GC.SuppressFinalize(this);
}
}
}