예제 #1
0
        public RESULT createEventQueueEntry(Event _event, ref EventQueueEntry entry)
        {
            RESULT result = RESULT.OK;
            IntPtr entryraw = new IntPtr();

            try
            {
                result = FMOD_EventSystem_CreateEventQueueEntry(eventsystemraw, _event.getRaw(), ref entryraw);
            }
            catch
            {
                result = RESULT.ERR_INVALID_PARAM;
            }
            if (result != RESULT.OK)
            {
                return result;
            }

            if (entry == null)
            {
                EventQueueEntry entrynew = new EventQueueEntry();
                entrynew.setRaw(entryraw);
                entry = entrynew;
            }
            else
            {
                entry.setRaw(entryraw);
            }

            return result;
        }
예제 #2
0
 public RESULT findNextEntry(ref EventQueueEntry entry)
 {
     IntPtr raw = entry.getRaw();
     RESULT result = FMOD_EventQueue_FindNextEntry(eventqueueraw, ref raw);
     entry.setRaw(raw);
     return result;
 }