示例#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;
            }
        }
示例#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);
 }
示例#3
0
 internal void GetMessages()
 {
     ConnectionHandler.GetMessagesReceived(ref Diff);
 }