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

73 lines
1.4 KiB
C#

using System;
public class AkSoundPosition : IDisposable
{
private IntPtr swigCPtr;
protected bool swigCMemOwn;
public AkVector Position
{
get
{
IntPtr intPtr = AkSoundEnginePINVOKE.CSharp_AkSoundPosition_Position_get(swigCPtr);
return (!(intPtr == IntPtr.Zero)) ? new AkVector(intPtr, false) : null;
}
set
{
AkSoundEnginePINVOKE.CSharp_AkSoundPosition_Position_set(swigCPtr, AkVector.getCPtr(value));
}
}
public AkVector Orientation
{
get
{
IntPtr intPtr = AkSoundEnginePINVOKE.CSharp_AkSoundPosition_Orientation_get(swigCPtr);
return (!(intPtr == IntPtr.Zero)) ? new AkVector(intPtr, false) : null;
}
set
{
AkSoundEnginePINVOKE.CSharp_AkSoundPosition_Orientation_set(swigCPtr, AkVector.getCPtr(value));
}
}
internal AkSoundPosition(IntPtr cPtr, bool cMemoryOwn)
{
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public AkSoundPosition()
: this(AkSoundEnginePINVOKE.CSharp_new_AkSoundPosition(), true)
{
}
internal static IntPtr getCPtr(AkSoundPosition obj)
{
return (obj != null) ? obj.swigCPtr : IntPtr.Zero;
}
~AkSoundPosition()
{
Dispose();
}
public virtual void Dispose()
{
lock (this)
{
if (swigCPtr != IntPtr.Zero)
{
if (swigCMemOwn)
{
swigCMemOwn = false;
AkSoundEnginePINVOKE.CSharp_delete_AkSoundPosition(swigCPtr);
}
swigCPtr = IntPtr.Zero;
}
GC.SuppressFinalize(this);
}
}
}