Exemplo n.º 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;
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 internal void GetMessages()
 {
     ConnectionHandler.GetMessagesReceived(ref Diff);
 }