Пример #1
0
        /// <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);
        }