Ejemplo n.º 1
0
        override internal void StartSDK(bool newPlayer)
        {
            started = true;

            if (newPlayer)
            {
                engageCache.Clear();
                actionStore.Clear();
            }

            NewSession();

            if (launchNotificationEvent != null)
            {
                RecordEvent(launchNotificationEvent);
                launchNotificationEvent = null;
            }

            TriggerDefaultEvents(newPlayer);

            // setup automated event uploads
            if (Settings.BackgroundEventUpload && !IsInvoking("Upload"))
            {
                InvokeRepeating(
                    "Upload",
                    Settings.BackgroundEventUploadStartDelaySeconds,
                    Settings.BackgroundEventUploadRepeatRateSeconds);
            }
        }
Ejemplo n.º 2
0
        override internal void StartSDK(bool newPlayer)
        {
            started        = true;
            this.newPlayer = newPlayer;
            if (newPlayer)
            {
                engageCache.Clear();
                actionStore.Clear();
                hasSentDefaultEvents = false;
            }

            retryAttempts = 0;
            NewSession();

            // setup automated event uploads
            if (Settings.BackgroundEventUpload)
            {
                InvokeRepeating(
                    "Upload",
                    Settings.BackgroundEventUploadStartDelaySeconds,
                    Settings.BackgroundEventUploadRepeatRateSeconds);
            }

            if (Settings.SendGameRunningEveryMinute)
            {
                RecordGameRunningEvent();
            }
        }
Ejemplo n.º 3
0
        public void ClearsCache()
        {
            uut.Put("dp", "flavour", "data");
            uut.Clear();

            Expect(uut.Get("dp", "flavour"), Is.Null);
        }
Ejemplo n.º 4
0
        override internal void StartSDK(bool newPlayer)
        {
            started        = true;
            this.newPlayer = newPlayer;
            if (newPlayer)
            {
                engageCache.Clear();
                actionStore.Clear();
                hasSentDefaultEvents = false;
            }

            NewSession();

            // setup automated event uploads
            if (Settings.BackgroundEventUpload && !IsInvoking("Upload"))
            {
                InvokeRepeating(
                    "Upload",
                    Settings.BackgroundEventUploadStartDelaySeconds,
                    Settings.BackgroundEventUploadRepeatRateSeconds);
            }
        }
Ejemplo n.º 5
0
 override internal void ClearPersistentData()
 {
     if (eventStore != null)
     {
         eventStore.ClearAll();
     }
     if (engageCache != null)
     {
         engageCache.Clear();
     }
     if (ImageMessageStore != null)
     {
         ImageMessageStore.Clear();
     }
 }