Exemple #1
0
        public static IEnumerator GetLevelsArrayIEnumerator(LevelsArray levelsArray)
        {
            yield return(new WaitForSeconds(0.2f));

            Levels[] levelsInner = new Levels[0];
            finalLevels = levelsInner;
        }
Exemple #2
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            LevelsArray levelsArray = ApplicasaLevelsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);

            finalLevels = GetLevelsArray(levelsArray);
            yield return(new WaitForSeconds(0.1f));
        }
Exemple #3
0
        public static Levels[] GetLevelsArray(LevelsArray levelsArray)
        {
            Levels[] levelss = new Levels[levelsArray.ArraySize];

            for (int i = 0; i < levelsArray.ArraySize; i++)
            {
                IntPtr newPtr = Marshal.ReadIntPtr(levelsArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                levelss[i] = new Levels(newPtr);
            }
            return(levelss);
        }
Exemple #4
0
        public static Levels[] GetLevelsArray(LevelsArray levelsArray)
        {
            Levels[]            levelsInner = new Levels[levelsArray.ArraySize];
            AndroidJavaObject[] bigArray    = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(levelsArray.Array);

            int count = 0;

            for (int i = 0; i < bigArray.Length; i++)
            {
                AndroidJavaObject   tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray     = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0; j < InnerArray.Length; j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    levelsInner[count] = new Levels(tempObj.GetRawObject(), tempObj);
                    count++;
                }
            }
            return(levelsInner);
        }
Exemple #5
0
        public static IEnumerator GetLevelsArrayIEnumerator(LevelsArray levelsArray)
        {
            Levels[]            levelsInner = new Levels[levelsArray.ArraySize];
            AndroidJavaObject[] bigArray    = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(levelsArray.Array);

            int count = 0;

            for (int i = 0; i < bigArray.Length; i++)
            {
                AndroidJavaObject   tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray     = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0; j < InnerArray.Length; j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    levelsInner[count] = new Levels(tempObj.GetRawObject(), tempObj);
                    count++;
                }
                yield return(new WaitForSeconds(0.2f));
            }
            finalLevels = levelsInner;
        }
Exemple #6
0
 public static IEnumerator GetLevelsArrayIEnumerator(LevelsArray levelsArray)
 {
     finalLevels = GetLevelsArray(levelsArray);
     yield return(new WaitForSeconds(0.1f));
 }
Exemple #7
0
 public static Levels[] GetLevelsArray(LevelsArray levelsArray)
 {
     Levels[] levelss = new Levels[0];
     return(levelss);
 }
Exemple #8
0
 public static IEnumerator GetLevelsArrayIEnumerator(LevelsArray levelsArray)
 {
     yield return new WaitForSeconds(0.2f);
     Levels[]  levelsInner = new Levels[0];
     finalLevels = levelsInner;
 }
Exemple #9
0
        public static IEnumerator GetLevelsArrayIEnumerator(LevelsArray levelsArray)
        {
            Levels[] levelsInner = new Levels[levelsArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(levelsArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    levelsInner[count] = new Levels(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalLevels = levelsInner;
        }
Exemple #10
0
 public static IEnumerator GetLevelsArrayIEnumerator(LevelsArray levelsArray)
 {
     finalLevels = GetLevelsArray(levelsArray);
     yield return new WaitForSeconds(0.1f);
 }
Exemple #11
0
 public static Levels[] GetLevelsArray(LevelsArray levelsArray)
 {
     Levels[] levelss = new Levels[0];
     return levelss;
 }
Exemple #12
0
        public static Levels[] GetLevelsArray(LevelsArray levelsArray)
        {
            Levels[] levelss = new Levels[levelsArray.ArraySize];

            for (int i=0; i < levelsArray.ArraySize; i++) {

                IntPtr newPtr = Marshal.ReadIntPtr (levelsArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                levelss[i] = new Levels(newPtr);
            }
            return levelss;
        }
Exemple #13
0
        public static Levels[] GetLevelsArray(LevelsArray levelsArray)
        {
            Levels[] levelsInner = new Levels[levelsArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(levelsArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    levelsInner[count] = new Levels(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return levelsInner;
        }