예제 #1
0
 private void UpdateSaveStatus()
 {
     unsafe
     {
         fixed(int *saveStatePtr = &saveState, saveErrorPtr = &saveError)
         {
             SDPlugin.SixDegreesSDK_GetSaveStatus(saveStatePtr, saveErrorPtr, null);
         }
     }
 }
예제 #2
0
 private void UpdateSaveStatus()
 {
     unsafe
     {
         fixed(int *saveStatePtr = &saveState, saveErrorPtr = &saveError)
         {
             fixed(long *uploadSizePtr = &uploadSize)
             {
                 fixed(float *uploadProgessPtr = &uploadProgress)
                 {
                     SDPlugin.SixDegreesSDK_GetSaveStatus(timeStamp, saveStatePtr, saveErrorPtr, uploadSizePtr, uploadProgessPtr);
                 }
             }
         }
     }
 }
예제 #3
0
        void UpdateStatus()
        {
            saveState = (int)SDPlugin.SDSaveState.None;

            if (SDPlugin.IsSDKReady && (saveTime > 0 || loadTime > 0))
            {
            }
            else
            {
                return;
            }

            var status = "";

            if (saveTime > loadTime)
            {
                unsafe
                {
                    fixed(int *saveStatePtr = &saveState, saveErrorPtr = &saveError)
                    {
                        fixed(long *uploadSizePtr = &uploadSize)
                        {
                            fixed(float *uploadProgessPtr = &uploadProgress)
                            {
                                SDPlugin.SixDegreesSDK_GetSaveStatus(saveTime, saveStatePtr, saveErrorPtr, uploadSizePtr, uploadProgessPtr);
                            }
                        }
                    }
                }
            }

            StringBuilder sb = new StringBuilder(16);

            SDPlugin.SixDegreesSDK_GetLocationId(sb, sb.Capacity);
            SDPlugin.LocationID = sb.ToString();
        }