mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
73 lines
1.4 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|