Beispiel #1
0
  public static uint DynamicSequenceOpen(ComponentBind.Entity in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie) {
	
		uint tempin_gameObjectID;
		if ( in_gameObjectID != null )
		{
			tempin_gameObjectID = (uint)in_gameObjectID.ID.GetHashCode();
			// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
			if (in_gameObjectID.Get<AkGameObject>() == null)
			{
				in_gameObjectID.Add(new AkGameObject());
			}
		}
		else
		{
			tempin_gameObjectID = unchecked((uint)-1);
		}
		
		
		in_pCookie = new AkCallbackManager.EventCallbackPackage(in_pfnCallback, in_pCookie);
	{
	  uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_1(tempin_gameObjectID, in_uFlags, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode());

	  return ret;
	}
  }
Beispiel #2
0
    //获取部件的绑定点
    public Transform GetPartBindPos(string bindName)
    {
        if (ComponentBind != null)
        {
            return(ComponentBind.GetComponentData <Transform>(bindName));
        }

        return(null);
    }
    public static AKRESULT GetPosition(ComponentBind.Entity in_GameObjectID, AkSoundPosition out_rPosition)
    {
        uint tempin_GameObjectID;
                if ( in_GameObjectID != null )
                {
                        tempin_GameObjectID = getGameObjectID(in_GameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_GameObjectID.Get<AkGameObject>() == null)
                        {
                                in_GameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_GameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPosition(tempin_GameObjectID, AkSoundPosition.getCPtr(out_rPosition));

            return ret;
        }
    }
    public static AKRESULT GetObjectObstructionAndOcclusion(ComponentBind.Entity in_ObjectID, uint in_uListener, out float out_rfObstructionLevel, out float out_rfOcclusionLevel)
    {
        uint tempin_ObjectID;
                if ( in_ObjectID != null )
                {
                        tempin_ObjectID = getGameObjectID(in_ObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_ObjectID.Get<AkGameObject>() == null)
                        {
                                in_ObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_ObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetObjectObstructionAndOcclusion(tempin_ObjectID, in_uListener, out out_rfObstructionLevel, out out_rfOcclusionLevel);

            return ret;
        }
    }
    public static AKRESULT GetGameObjectAuxSendValues(ComponentBind.Entity in_gameObjectID, AkAuxSendArray out_paAuxSendValues, ref uint io_ruNumSendValues)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectAuxSendValues(tempin_gameObjectID, out_paAuxSendValues.m_Buffer, ref io_ruNumSendValues);

            return ret;
        }
    }
    public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ComponentBind.Entity in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_0(in_eventID, (int)in_ActionType, tempin_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID);

            return ret;
        }
    }
 private static uint getGameObjectID(ComponentBind.Entity entity)
 {
     return (uint)(entity.GUID & 0xffffffff);
 }
    public static void StopAll(ComponentBind.Entity in_gameObjectID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AkSoundEnginePINVOKE.CSharp_StopAll__SWIG_0(tempin_gameObjectID);

        }
    }
    public static AKRESULT SetRTPCValue(string in_pszRtpcName, float in_value, ComponentBind.Entity in_gameObjectID, int in_uValueChangeDuration)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetRTPCValue__SWIG_5(in_pszRtpcName, in_value, tempin_gameObjectID, in_uValueChangeDuration);

            return ret;
        }
    }
Beispiel #10
0
    public static uint PostEvent(string in_pszEventName, ComponentBind.Entity in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

                in_pCookie = new AkCallbackManager.EventCallbackPackage(in_pfnCallback, in_pCookie);
        {
            uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_8(in_pszEventName, tempin_gameObjectID, in_uFlags, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode(), in_cExternals);

            return ret;
        }
    }
Beispiel #11
0
  public static uint PostEvent(uint in_eventID, ComponentBind.Entity in_gameObjectID, uint in_uFlags) {
	
		uint tempin_gameObjectID;
		if ( in_gameObjectID != null )
		{
			tempin_gameObjectID = (uint)in_gameObjectID.ID.GetHashCode();
			// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
			if (in_gameObjectID.Get<AkGameObject>() == null)
			{
				in_gameObjectID.Add(new AkGameObject());
			}
		}
		else
		{
			tempin_gameObjectID = unchecked((uint)-1);
		}
		
		
	{
	  uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_4(in_eventID, tempin_gameObjectID, in_uFlags);

	  return ret;
	}
  }
Beispiel #12
0
  public static bool GetIsGameObjectActive(ComponentBind.Entity in_GameObjId) {
	
		uint tempin_GameObjId;
		if ( in_GameObjId != null )
		{
			tempin_GameObjId = (uint)in_GameObjId.ID.GetHashCode();
			// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
			if (in_GameObjId.Get<AkGameObject>() == null)
			{
				in_GameObjId.Add(new AkGameObject());
			}
		}
		else
		{
			tempin_GameObjId = unchecked((uint)-1);
		}
		
		
	{
	  bool ret = AkSoundEnginePINVOKE.CSharp_GetIsGameObjectActive(tempin_GameObjId);

	  return ret;
	}
  }
Beispiel #13
0
  public static AKRESULT GetGameObjectDryLevelValue(ComponentBind.Entity in_gameObjectID, out float out_rfControlValue) {
	
		uint tempin_gameObjectID;
		if ( in_gameObjectID != null )
		{
			tempin_gameObjectID = (uint)in_gameObjectID.ID.GetHashCode();
			// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
			if (in_gameObjectID.Get<AkGameObject>() == null)
			{
				in_gameObjectID.Add(new AkGameObject());
			}
		}
		else
		{
			tempin_gameObjectID = unchecked((uint)-1);
		}
		
		
	{
	  AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetGameObjectDryLevelValue(tempin_gameObjectID, out out_rfControlValue);

	  return ret;
	}
  }
Beispiel #14
0
  public static AKRESULT GetSwitch(string in_pstrSwitchGroupName, ComponentBind.Entity in_GameObj, out uint out_rSwitchState) {
	
		uint tempin_GameObj;
		if ( in_GameObj != null )
		{
			tempin_GameObj = (uint)in_GameObj.ID.GetHashCode();
			// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
			if (in_GameObj.Get<AkGameObject>() == null)
			{
				in_GameObj.Add(new AkGameObject());
			}
		}
		else
		{
			tempin_GameObj = unchecked((uint)-1);
		}
		
		
	{
	  AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetSwitch__SWIG_1(in_pstrSwitchGroupName, tempin_GameObj, out out_rSwitchState);

	  return ret;
	}
  }
Beispiel #15
0
    public static uint PostEvent(string in_pszEventName, ComponentBind.Entity in_gameObjectID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            uint ret = AkSoundEnginePINVOKE.CSharp_PostEvent__SWIG_11(in_pszEventName, tempin_gameObjectID);

            return ret;
        }
    }
Beispiel #16
0
    public static AKRESULT SetObjectPosition(ComponentBind.Entity in_GameObjectID, float PosX, float PosY, float PosZ, float OrientationX, float OrientationY, float OrientationZ)
    {
        uint tempin_GameObjectID;
                if ( in_GameObjectID != null )
                {
                        tempin_GameObjectID = getGameObjectID(in_GameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_GameObjectID.Get<AkGameObject>() == null)
                        {
                                in_GameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_GameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetObjectPosition(tempin_GameObjectID, PosX, PosY, PosZ, OrientationX, OrientationY, OrientationZ);

            return ret;
        }
    }
Beispiel #17
0
    public static AKRESULT RegisterGameObj(ComponentBind.Entity in_gameObjectID, string in_pszObjName)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_RegisterGameObj__SWIG_3(tempin_gameObjectID, in_pszObjName);

            return ret;
        }
    }
Beispiel #18
0
    public static AKRESULT SetSwitch(string in_pszSwitchGroup, string in_pszSwitchState, ComponentBind.Entity in_gameObjectID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetSwitch__SWIG_1(in_pszSwitchGroup, in_pszSwitchState, tempin_gameObjectID);

            return ret;
        }
    }
Beispiel #19
0
    public static AKRESULT ResetRTPCValue(uint in_rtpcID, ComponentBind.Entity in_gameObjectID, int in_uValueChangeDuration, AkCurveInterpolation in_eFadeCurve)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ResetRTPCValue__SWIG_0(in_rtpcID, tempin_gameObjectID, in_uValueChangeDuration, (int)in_eFadeCurve);

            return ret;
        }
    }
Beispiel #20
0
    public static AKRESULT UnregisterGameObj(ComponentBind.Entity in_gameObjectID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_UnregisterGameObj(tempin_gameObjectID);

            return ret;
        }
    }
Beispiel #21
0
    public static AKRESULT SeekOnEvent(uint in_eventID, ComponentBind.Entity in_gameObjectID, int in_iPosition)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_1(in_eventID, tempin_gameObjectID, in_iPosition);

            return ret;
        }
    }
Beispiel #22
0
    public static uint DynamicSequenceOpen(ComponentBind.Entity in_gameObjectID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            uint ret = AkSoundEnginePINVOKE.CSharp_DynamicSequenceOpen__SWIG_3(tempin_gameObjectID);

            return ret;
        }
    }
Beispiel #23
0
    public static AKRESULT SeekOnEvent(string in_pszEventName, ComponentBind.Entity in_gameObjectID, float in_fPercent, bool in_bSeekToNearestMarker)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SeekOnEvent__SWIG_8(in_pszEventName, tempin_gameObjectID, in_fPercent, in_bSeekToNearestMarker);

            return ret;
        }
    }
Beispiel #24
0
    public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ComponentBind.Entity in_gameObjectID)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_8(in_pszEventName, (int)in_ActionType, tempin_gameObjectID);

            return ret;
        }
    }
Beispiel #25
0
    public static AKRESULT SetActiveListeners(ComponentBind.Entity in_GameObjectID, uint in_uListenerMask)
    {
        uint tempin_GameObjectID;
                if ( in_GameObjectID != null )
                {
                        tempin_GameObjectID = getGameObjectID(in_GameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_GameObjectID.Get<AkGameObject>() == null)
                        {
                                in_GameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_GameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetActiveListeners(tempin_GameObjectID, in_uListenerMask);

            return ret;
        }
    }
Beispiel #26
0
    public static float GetMaxRadius(ComponentBind.Entity in_GameObjId)
    {
        uint tempin_GameObjId;
                if ( in_GameObjId != null )
                {
                        tempin_GameObjId = getGameObjectID(in_GameObjId);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_GameObjId.Get<AkGameObject>() == null)
                        {
                                in_GameObjId.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_GameObjId = unchecked((uint)-1);
                }

        {
            float ret = AkSoundEnginePINVOKE.CSharp_GetMaxRadius(tempin_GameObjId);

            return ret;
        }
    }
Beispiel #27
0
    public static AKRESULT SetGameObjectOutputBusVolume(ComponentBind.Entity in_gameObjectID, float in_fControlValue)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetGameObjectOutputBusVolume(tempin_gameObjectID, in_fControlValue);

            return ret;
        }
    }
Beispiel #28
0
    public static AKRESULT GetPlayingIDsFromGameObject(ComponentBind.Entity in_GameObjId, ref uint io_ruNumIDs, uint[] out_aPlayingIDs)
    {
        uint tempin_GameObjId;
                if ( in_GameObjId != null )
                {
                        tempin_GameObjId = getGameObjectID(in_GameObjId);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_GameObjId.Get<AkGameObject>() == null)
                        {
                                in_GameObjId.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_GameObjId = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPlayingIDsFromGameObject(tempin_GameObjId, ref io_ruNumIDs, out_aPlayingIDs);

            return ret;
        }
    }
Beispiel #29
0
    public static AKRESULT SetMultiplePositions(ComponentBind.Entity in_GameObjectID, AkPositionArray in_pPositions, ushort in_NumPositions)
    {
        uint tempin_GameObjectID;
                if ( in_GameObjectID != null )
                {
                        tempin_GameObjectID = getGameObjectID(in_GameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_GameObjectID.Get<AkGameObject>() == null)
                        {
                                in_GameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_GameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetMultiplePositions__SWIG_1(tempin_GameObjectID, in_pPositions.m_Buffer, in_NumPositions);

            return ret;
        }
    }
Beispiel #30
0
    public static AKRESULT GetRTPCValue(uint in_rtpcID, ComponentBind.Entity in_gameObjectID, out float out_rValue, ref int io_rValueType)
    {
        uint tempin_gameObjectID;
                if ( in_gameObjectID != null )
                {
                        tempin_gameObjectID = getGameObjectID(in_gameObjectID);
                        // Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
                        if (in_gameObjectID.Get<AkGameObject>() == null)
                        {
                                in_gameObjectID.Add(new AkGameObject());
                        }
                }
                else
                {
                        tempin_gameObjectID = unchecked((uint)-1);
                }

        {
            AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetRTPCValue__SWIG_0(in_rtpcID, tempin_gameObjectID, out out_rValue, ref io_rValueType);

            return ret;
        }
    }
Beispiel #31
0
  public static AKRESULT PostTrigger(string in_pszTrigger, ComponentBind.Entity in_gameObjectID) {
	
		uint tempin_gameObjectID;
		if ( in_gameObjectID != null )
		{
			tempin_gameObjectID = (uint)in_gameObjectID.ID.GetHashCode();
			// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
			if (in_gameObjectID.Get<AkGameObject>() == null)
			{
				in_gameObjectID.Add(new AkGameObject());
			}
		}
		else
		{
			tempin_gameObjectID = unchecked((uint)-1);
		}
		
		
	{
	  AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PostTrigger__SWIG_1(in_pszTrigger, tempin_gameObjectID);

	  return ret;
	}
  }