/// <summary>
 /// Finds a Wwise object by ID number and then passes it to an IWwiseObjectVisitor.
 /// </summary>
 /// <param name="id">The ID number of the object to find.</param>
 /// <param name="visitor">The IWwiseObjectVisitor to pass the object to if it is found.</param>
 /// <returns>true if the object was found and a method was called on the visitor.</returns>
 public bool Dispatch(uint id, IWwiseObjectVisitor visitor)
 {
     IWwiseObject obj = Find(id);
     if (obj != null)
     {
         obj.Accept(visitor);
         return true;
     }
     return false;
 }
Esempio n. 2
0
 /// <summary>
 /// Calls the Visit(SoundBankMusicSegment) method on an IWwiseObjectVisitor.
 /// </summary>
 /// <param name="visitor">The visitor to call the method on.</param>
 public void Accept(IWwiseObjectVisitor visitor)
 {
     visitor.Visit(this);
 }
 /// <summary>
 /// Calls the Visit(SoundBankActorMixer) method on an IWwiseObjectVisitor.
 /// </summary>
 /// <param name="visitor">The visitor to call the method on.</param>
 public void Accept(IWwiseObjectVisitor visitor)
 {
     visitor.Visit(this);
 }