public static Foo[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { if(javaUnityApplicasaFoo==null) javaUnityApplicasaFoo = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaFoo"); AndroidJavaObject[] bigArray = javaUnityApplicasaFoo.CallStatic<AndroidJavaObject[]>("ApplicasaFooGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind); Foo[] fooInner= null; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); Foo[] footemp = new Foo[InnerArray.Length]; for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; footemp[j] = new Foo(tempObj.GetRawObject(),tempObj); } if (fooInner == null) fooInner = footemp; else{ Foo[] firstOne = fooInner; fooInner = new Foo[firstOne.Length+footemp.Length]; firstOne.CopyTo(fooInner,0); footemp.CopyTo(fooInner,firstOne.Length); } } return fooInner; }
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback) { callback(true,new Error(),new ColorsArray()); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return new WaitForSeconds(0.2f); Colors[] colorsInner = new Colors[0]; finalColors = colorsInner; }
public static int UpdateLocalStorage(Query query, QueryKind queryKind) { return ApplicasaColorsUpdateLocalStorage((query != null ? query.innerQuery : IntPtr.Zero), queryKind); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { if(javaUnityApplicasaColors==null) javaUnityApplicasaColors = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaColors"); AndroidJavaObject[] bigArray = javaUnityApplicasaColors.CallStatic<AndroidJavaObject[]>("ApplicasaColorsGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind); Colors[] colorsInner= null;; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); Colors[] colorstemp = new Colors[InnerArray.Length]; for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; colorstemp[j] = new Colors(tempObj.GetRawObject(),tempObj); } if (colorsInner == null) colorsInner = colorstemp; else{ Colors[] firstOne = colorsInner; colorsInner = new Colors[firstOne.Length+colorstemp.Length]; firstOne.CopyTo(colorsInner,0); colorstemp.CopyTo(colorsInner,firstOne.Length); } yield return new WaitForSeconds(0.2f); } finalColors = colorsInner; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return new WaitForSeconds(0.2f); Chat[] chatInner = new Chat[0]; finalChat = chatInner; }
public static Colors[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { return GetColorsArray(ApplicasaColorsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind)); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { if(javaUnityApplicasaDataManager==null) javaUnityApplicasaDataManager = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaDataManager"); AndroidJavaObject[] bigArray = javaUnityApplicasaDataManager.CallStatic<AndroidJavaObject[]>("ApplicasaDataManagerGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind); DataManager[] dataManagerInner= null;; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); DataManager[] dataManagertemp = new DataManager[InnerArray.Length]; for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManagertemp[j] = new DataManager(tempObj.GetRawObject(),tempObj); } if (dataManagerInner == null) dataManagerInner = dataManagertemp; else{ DataManager[] firstOne = dataManagerInner; dataManagerInner = new DataManager[firstOne.Length+dataManagertemp.Length]; firstOne.CopyTo(dataManagerInner,0); dataManagertemp.CopyTo(dataManagerInner,firstOne.Length); } yield return new WaitForSeconds(0.2f); } finalDataManager = dataManagerInner; }
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetDataManagerArrayFinished callback) { callback(true,new Error(),new DataManagerArray()); }
public static DataManager[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { return GetDataManagerArray(ApplicasaDataManagerGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind)); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { DataManagerArray dataManagerArray = ApplicasaDataManagerGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind); finalDataManager = GetDataManagerArray(dataManagerArray); yield return new WaitForSeconds(0.1f); }
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetDataManagerArrayFinished callback) { ApplicasaDataManagerGetArrayWithQuery((query != null ? query.innerQuery : IntPtr.Zero), queryKind, callback); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return new WaitForSeconds(0.2f); Foo[] fooInner = new Foo[0]; finalFoo = fooInner; }
public static Foo[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { Foo[] foo = new Foo[0]; return foo; }
public static Chat[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { if(javaUnityApplicasaChat==null) javaUnityApplicasaChat = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaChat"); AndroidJavaObject[] bigArray = javaUnityApplicasaChat.CallStatic<AndroidJavaObject[]>("ApplicasaChatGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind); Chat[] chatInner= null; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); Chat[] chattemp = new Chat[InnerArray.Length]; for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; chattemp[j] = new Chat(tempObj.GetRawObject(),tempObj); } if (chatInner == null) chatInner = chattemp; else{ Chat[] firstOne = chatInner; chatInner = new Chat[firstOne.Length+chattemp.Length]; firstOne.CopyTo(chatInner,0); chattemp.CopyTo(chatInner,firstOne.Length); } } return chatInner; }
public static DataManager[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { DataManager[] dataManager = new DataManager[0]; return dataManager; }
public static Chat[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { Chat[] chat = new Chat[0]; return chat; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return new WaitForSeconds(0.2f); DataManager[] dataManagerInner = new DataManager[0]; finalDataManager = dataManagerInner; }
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback) { ApplicasaColorsGetArrayWithQuery((query != null ? query.innerQuery : IntPtr.Zero), queryKind, callback); }
public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { return GetGameVArray(ApplicasaGameVGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind)); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { ColorsArray colorsArray = ApplicasaColorsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind); finalColors = GetColorsArray(colorsArray); yield return new WaitForSeconds(0.1f); }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { GameVArray gameVArray = ApplicasaGameVGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind); finalGameV = GetGameVArray(gameVArray); yield return new WaitForSeconds(0.1f); }
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback) { if(javaUnityApplicasaColors==null) javaUnityApplicasaColors = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaColors"); int uniqueActionID=Core.currentCallbackID; Core.currentCallbackID++; setGetObjectArrayFinished(callback, uniqueActionID); javaUnityApplicasaColors.CallStatic("ApplicasaColorsGetArrayWithQuery", query.innerQueryJavaObject, (int)queryKind, uniqueActionID); }
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; }
public static int UpdateLocalStorage(Query query, QueryKind queryKind) { if(javaUnityApplicasaColors==null) javaUnityApplicasaColors = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaColors"); int count = javaUnityApplicasaColors.CallStatic<int>("ApplicasaColorsUpdateLocalStorage", query.innerQueryJavaObject, (int)queryKind); return count; }
public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { GameV[] gameV = new GameV[0]; return gameV; }
public static Colors[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { Colors[] colors = new Colors[0]; return colors; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return new WaitForSeconds(0.2f); GameV[] gameVInner = new GameV[0]; finalGameV = gameVInner; }
public static int UpdateLocalStorage(Query query, QueryKind queryKind) { return -1; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { FooArray fooArray = ApplicasaFooGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind); finalFoo = GetFooArray(fooArray); yield return new WaitForSeconds(0.1f); }