Exemplo n.º 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;
        }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public RESULT remove(EventQueueEntry entry)
 {
     return FMOD_EventQueue_Remove(eventqueueraw, entry.getRaw());
 }
Exemplo n.º 4
0
 public RESULT add(EventQueueEntry entry, bool allow_duplicates)
 {
     return FMOD_EventQueue_Add(eventqueueraw, entry.getRaw(), allow_duplicates ? 1 : 0);
 }