Ejemplo n.º 1
0
        public static Languages[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Languages[] languages = new Languages[0];

            return(languages);
        }
Ejemplo n.º 2
0
 public static IEnumerator GetLanguagesArrayIEnumerator(LanguagesArray languagesArray)
 {
     yield return new WaitForSeconds(0.2f);
     Languages[]  languagesInner = new Languages[0];
     finalLanguages = languagesInner;
 }
Ejemplo n.º 3
0
 public static Languages[] GetLanguagesArray(LanguagesArray languagesArray)
 {
     Languages[] languagess = new Languages[0];
     return(languagess);
 }
Ejemplo n.º 4
0
        public static Languages[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Languages[] languages = new Languages[0];

            return languages;
        }
Ejemplo n.º 5
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Languages[]  languagesInner = new Languages[0];
         finalLanguages = languagesInner;
 }
Ejemplo n.º 6
0
        public static IEnumerator GetLanguagesArrayIEnumerator(LanguagesArray languagesArray)
        {
            Languages[] languagesInner = new Languages[languagesArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(languagesArray.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];
                    languagesInner[count] = new Languages(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalLanguages = languagesInner;
        }
Ejemplo n.º 7
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaLanguages==null)
                javaUnityApplicasaLanguages = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaLanguages");

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

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

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                Languages[] languagestemp = new Languages[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    languagestemp[j] = new Languages(tempObj.GetRawObject(),tempObj);
                }
                if (languagesInner == null)
                    languagesInner = languagestemp;
                else{
                   Languages[] firstOne = languagesInner;
                    languagesInner = new Languages[firstOne.Length+languagestemp.Length];
                    firstOne.CopyTo(languagesInner,0);
                    languagestemp.CopyTo(languagesInner,firstOne.Length);
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalLanguages = languagesInner;
        }
Ejemplo n.º 8
0
 public static Languages[] GetLanguagesArray(LanguagesArray languagesArray)
 {
     Languages[] languagess = new Languages[0];
     return languagess;
 }
Ejemplo n.º 9
0
        public static Languages[] GetLanguagesArray(LanguagesArray languagesArray)
        {
            Languages[] languagess = new Languages[languagesArray.ArraySize];

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

                IntPtr newPtr = Marshal.ReadIntPtr (languagesArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                languagess[i] = new Languages(newPtr);
            }
            return languagess;
        }
Ejemplo n.º 10
0
        public static Languages[] GetLanguagesArray(LanguagesArray languagesArray)
        {
            Languages[] languagesInner = new Languages[languagesArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(languagesArray.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];
                    languagesInner[count] = new Languages(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return languagesInner;
        }