private void OnPlayerSetupInfoReceived(PlayerSetupInfo info) { monitoringProgressIndicator.Image = Properties.Resources.check; monitoringExplanationLabel.Text = $"Found character: {info.PlayerName}. {info.AcquiredMounts.Count} mounts, {info.AcquiredBardings.Count} bardings, {info.AcquiredOrchestrions.Count} orchestrions."; importExplanationLabel.Enabled = true; copyButton.Enabled = true; this.info = info; }
private void OnMessageReceived(string connection, long timestamp, byte[] data) { PlayerSetupInfo info = PlayerSetupInfo.ParseOrNull(data); if (info != null) { Trace.WriteLine(string.Format("GameMonitor: received PlayerSetup packet for player {0}", info.PlayerName)); Trace.WriteLine(string.Format("Bardings ({0}): {1}", info.AcquiredBardings.Count, string.Join(",", info.AcquiredBardings))); Trace.WriteLine(string.Format("Mounts ({0}): {1}", info.AcquiredMounts.Count, string.Join(",", info.AcquiredMounts))); Trace.WriteLine(string.Format("Orchestrions ({0}): {1}", info.AcquiredOrchestrions.Count, string.Join(",", info.AcquiredOrchestrions))); PlayerSetupInfoReceived?.Invoke(info); } }