Пример #1
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            yield return(new WaitForSeconds(0.2f));

            GameV[] gameVInner = new GameV[0];
            finalGameV = gameVInner;
        }
Пример #2
0
        public static IEnumerator GetGameVArrayIEnumerator(GameVArray gameVArray)
        {
            yield return(new WaitForSeconds(0.2f));

            GameV[] gameVInner = new GameV[0];
            finalGameV = gameVInner;
        }
Пример #3
0
        public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            if (javaUnityApplicasaGameV == null)
            {
                javaUnityApplicasaGameV = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaGameV");
            }

            AndroidJavaObject[] bigArray = javaUnityApplicasaGameV.CallStatic <AndroidJavaObject[]>("ApplicasaGameVGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            GameV[] gameVInner = null;
            for (int i = 0; i < bigArray.Length; i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                GameV[]             gameVtemp  = new GameV[InnerArray.Length];
                for (int j = 0; j < InnerArray.Length; j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    gameVtemp[j] = new GameV(tempObj.GetRawObject(), tempObj);
                }
                if (gameVInner == null)
                {
                    gameVInner = gameVtemp;
                }
                else
                {
                    GameV[] firstOne = gameVInner;
                    gameVInner = new GameV[firstOne.Length + gameVtemp.Length];
                    firstOne.CopyTo(gameVInner, 0);
                    gameVtemp.CopyTo(gameVInner, firstOne.Length);
                }
            }
            return(gameVInner);
        }
Пример #4
0
        public static GameV[] GetGameVArray(GameVArray gameVArray)
        {
            GameV[] gameVs = new GameV[gameVArray.ArraySize];

            for (int i = 0; i < gameVArray.ArraySize; i++)
            {
                IntPtr newPtr = Marshal.ReadIntPtr(gameVArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                gameVs[i] = new GameV(newPtr);
            }
            return(gameVs);
        }
Пример #5
0
        public static GameV[] GetGameVArray(GameVArray gameVArray)
        {
            GameV[]             gameVInner = new GameV[gameVArray.ArraySize];
            AndroidJavaObject[] bigArray   = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(gameVArray.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];
                    gameVInner[count] = new GameV(tempObj.GetRawObject(), tempObj);
                    count++;
                }
            }
            return(gameVInner);
        }
Пример #6
0
        public static IEnumerator GetGameVArrayIEnumerator(GameVArray gameVArray)
        {
            GameV[]             gameVInner = new GameV[gameVArray.ArraySize];
            AndroidJavaObject[] bigArray   = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(gameVArray.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];
                    gameVInner[count] = new GameV(tempObj.GetRawObject(), tempObj);
                    count++;
                }
                yield return(new WaitForSeconds(0.2f));
            }
            finalGameV = gameVInner;
        }
Пример #7
0
 public static IEnumerator GetGameVArrayIEnumerator(GameVArray gameVArray)
 {
     yield return new WaitForSeconds(0.2f);
     GameV[]  gameVInner = new GameV[0];
     finalGameV = gameVInner;
 }
Пример #8
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         GameV[]  gameVInner = new GameV[0];
         finalGameV = gameVInner;
 }
Пример #9
0
        public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            GameV[] gameV = new GameV[0];

            return gameV;
        }
Пример #10
0
        public static IEnumerator GetGameVArrayIEnumerator(GameVArray gameVArray)
        {
            GameV[] gameVInner = new GameV[gameVArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(gameVArray.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];
                    gameVInner[count] = new GameV(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalGameV = gameVInner;
        }
Пример #11
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaGameV==null)
                javaUnityApplicasaGameV = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaGameV");

                AndroidJavaObject[] bigArray = javaUnityApplicasaGameV.CallStatic<AndroidJavaObject[]>("ApplicasaGameVGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            GameV[] gameVInner= null;;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                GameV[] gameVtemp = new GameV[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    gameVtemp[j] = new GameV(tempObj.GetRawObject(),tempObj);
                }
                if (gameVInner == null)
                    gameVInner = gameVtemp;
                else{
                   GameV[] firstOne = gameVInner;
                    gameVInner = new GameV[firstOne.Length+gameVtemp.Length];
                    firstOne.CopyTo(gameVInner,0);
                    gameVtemp.CopyTo(gameVInner,firstOne.Length);
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalGameV = gameVInner;
        }
Пример #12
0
 public static GameV[] GetGameVArray(GameVArray gameVArray)
 {
     GameV[] gameVs = new GameV[0];
     return gameVs;
 }
Пример #13
0
        public static GameV[] GetGameVArray(GameVArray gameVArray)
        {
            GameV[] gameVs = new GameV[gameVArray.ArraySize];

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

                IntPtr newPtr = Marshal.ReadIntPtr (gameVArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                gameVs[i] = new GameV(newPtr);
            }
            return gameVs;
        }
Пример #14
0
        public static GameV[] GetGameVArray(GameVArray gameVArray)
        {
            GameV[] gameVInner = new GameV[gameVArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(gameVArray.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];
                    gameVInner[count] = new GameV(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return gameVInner;
        }
Пример #15
0
        public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            GameV[] gameV = new GameV[0];

            return(gameV);
        }
Пример #16
0
 public static GameV[] GetGameVArray(GameVArray gameVArray)
 {
     GameV[] gameVs = new GameV[0];
     return(gameVs);
 }