Exemple #1
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            VirtualGoodCategoryArray virtualGoodCategoryArray = ApplicasaVirtualGoodCategoryGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);

            finalVirtualGoodCategory = GetVirtualGoodCategoryArray(virtualGoodCategoryArray);
            yield return(new WaitForSeconds(0.1f));
        }
Exemple #2
0
        public static IEnumerator GetVirtualGoodCategoryArrayIEnumerator(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            yield return(new WaitForSeconds(0.2f));

            VirtualGoodCategory[] virtualGoodCategoryInner = new VirtualGoodCategory[0];
            finalVirtualGoodCategory = virtualGoodCategoryInner;
        }
Exemple #3
0
        public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            VirtualGoodCategory[] virtualGoodCategorys = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];

            for (int i = 0; i < virtualGoodCategoryArray.ArraySize; i++)
            {
                IntPtr newPtr = Marshal.ReadIntPtr(virtualGoodCategoryArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                virtualGoodCategorys[i] = new VirtualGoodCategory(newPtr);
            }
            return(virtualGoodCategorys);
        }
 public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
 {
     VirtualGoodCategory[] virtualGoodCategory = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];
     #if UNITY_ANDROID
     AndroidJavaObject tempJavaObjectArray=new AndroidJavaObject(virtualGoodCategoryArray.Array);
     #endif
     for (int i=0; i < virtualGoodCategoryArray.ArraySize; i++) {
     #if UNITY_IPHONE
         IntPtr newPtr = Marshal.ReadIntPtr (virtualGoodCategoryArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
         virtualGoodCategory[i] = new VirtualGoodCategory(newPtr);
     #endif
     #if UNITY_ANDROID
         AndroidJavaObject tempJavaObject = tempJavaObjectArray.Call<AndroidJavaObject>("get",i);
         IntPtr newPtr = AndroidJNI.NewGlobalRef(tempJavaObject.GetRawObject());
         virtualGoodCategory[i] = new VirtualGoodCategory(newPtr, new AndroidJavaObject(newPtr));
     #endif
     }
     return virtualGoodCategory;
 }
Exemple #5
0
        public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            VirtualGoodCategory[] virtualGoodCategoryInner = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];
            AndroidJavaObject[]   bigArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(virtualGoodCategoryArray.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];
                    virtualGoodCategoryInner[count] = new VirtualGoodCategory(tempObj.GetRawObject(), tempObj);
                    count++;
                }
            }
            return(virtualGoodCategoryInner);
        }
Exemple #6
0
        public static IEnumerator GetVirtualGoodCategoryArrayIEnumerator(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            VirtualGoodCategory[] virtualGoodCategoryInner = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];
            AndroidJavaObject[]   bigArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(virtualGoodCategoryArray.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];
                    virtualGoodCategoryInner[count] = new VirtualGoodCategory(tempObj.GetRawObject(), tempObj);
                    count++;
                }
                yield return(new WaitForSeconds(0.2f));
            }
            finalVirtualGoodCategory = virtualGoodCategoryInner;
        }
Exemple #7
0
 public static IEnumerator GetVirtualGoodCategoryArrayIEnumerator(VirtualGoodCategoryArray virtualGoodCategoryArray)
 {
     finalVirtualGoodCategory = GetVirtualGoodCategoryArray(virtualGoodCategoryArray);
     yield return(new WaitForSeconds(0.1f));
 }
Exemple #8
0
 public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
 {
     VirtualGoodCategory[] virtualGoodCategorys = new VirtualGoodCategory[0];
     return(virtualGoodCategorys);
 }
 public static IEnumerator GetVirtualGoodCategoryArrayIEnumerator(VirtualGoodCategoryArray virtualGoodCategoryArray)
 {
     yield return new WaitForSeconds(0.2f);
     VirtualGoodCategory[]  virtualGoodCategoryInner = new VirtualGoodCategory[0];
     finalVirtualGoodCategory = virtualGoodCategoryInner;
 }
        public static IEnumerator GetVirtualGoodCategoryArrayIEnumerator(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            VirtualGoodCategory[] virtualGoodCategoryInner = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(virtualGoodCategoryArray.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];
                    virtualGoodCategoryInner[count] = new VirtualGoodCategory(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalVirtualGoodCategory = virtualGoodCategoryInner;
        }
 public static IEnumerator GetVirtualGoodCategoryArrayIEnumerator(VirtualGoodCategoryArray virtualGoodCategoryArray)
 {
     finalVirtualGoodCategory = GetVirtualGoodCategoryArray(virtualGoodCategoryArray);
     yield return new WaitForSeconds(0.1f);
 }
 public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
 {
     VirtualGoodCategory[] virtualGoodCategorys = new VirtualGoodCategory[0];
     return virtualGoodCategorys;
 }
        public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            VirtualGoodCategory[] virtualGoodCategorys = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];

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

                IntPtr newPtr = Marshal.ReadIntPtr (virtualGoodCategoryArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                virtualGoodCategorys[i] = new VirtualGoodCategory(newPtr);
            }
            return virtualGoodCategorys;
        }
        public static VirtualGoodCategory[] GetVirtualGoodCategoryArray(VirtualGoodCategoryArray virtualGoodCategoryArray)
        {
            VirtualGoodCategory[] virtualGoodCategoryInner = new VirtualGoodCategory[virtualGoodCategoryArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(virtualGoodCategoryArray.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];
                    virtualGoodCategoryInner[count] = new VirtualGoodCategory(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return virtualGoodCategoryInner;
        }