/// <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; } }
/// <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); }
internal void GetMessages() { ConnectionHandler.GetMessagesReceived(ref Diff); }