FMOD_Studio_Bank_GetEventCount() 개인적인 메소드

private FMOD_Studio_Bank_GetEventCount ( IntPtr bank, int &count ) : RESULT
bank System.IntPtr
count int
리턴 RESULT
예제 #1
0
파일: Bank.cs 프로젝트: ahvonenj/TheForest
        public RESULT getEventList(out EventDescription[] array)
        {
            array = null;
            int    num;
            RESULT rESULT = Bank.FMOD_Studio_Bank_GetEventCount(this.rawPtr, out num);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            if (num == 0)
            {
                array = new EventDescription[0];
                return(rESULT);
            }
            IntPtr[] array2 = new IntPtr[num];
            int      num2;

            rESULT = Bank.FMOD_Studio_Bank_GetEventList(this.rawPtr, array2, num, out num2);
            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            if (num2 > num)
            {
                num2 = num;
            }
            array = new EventDescription[num2];
            for (int i = 0; i < num2; i++)
            {
                array[i] = new EventDescription(array2[i]);
            }
            return(RESULT.OK);
        }
예제 #2
0
파일: Bank.cs 프로젝트: ahvonenj/TheForest
 public RESULT getEventCount(out int count)
 {
     return(Bank.FMOD_Studio_Bank_GetEventCount(this.rawPtr, out count));
 }