Exemple #1
0
        /// <summary>
        ///     Ticks the worker. Fetches all messages received since the last <see cref="Tick"/> call and
        ///     applies the diff.
        /// </summary>
        public void Tick()
        {
            ConnectionHandler.GetMessagesReceived(ref ViewDiff);

            // Update worker flags
            foreach (var(key, value) in ViewDiff.GetWorkerFlagChanges())
            {
                workerFlags[key] = value;
            }
        }
Exemple #2
0
 /// <summary>
 ///     Ticks the worker. Fetches all messages received since the last <see cref="Tick"/> call and
 ///     applies the diff.
 /// </summary>
 public void Tick()
 {
     ConnectionHandler.GetMessagesReceived(ref ViewDiff);
     View.ApplyDiff(ViewDiff);
 }
Exemple #3
0
 internal void GetMessages()
 {
     ConnectionHandler.GetMessagesReceived(ref Diff);
 }