public LogReplayDataProvider(ReplayFullData data) { this.data = data; map = data.Data.Map; PunterNames = data.Meta.Scores .Select((s, i) => i == data.Meta.OurPunter ? data.Meta.AiName : i.ToString()) .ToArray(); ourPunterIndex = data.Meta.OurPunter; splurges = new long[PunterNames.Length]; futures = data.Data.Futures ?? new Future[0]; }
private void SelectedReplayChanged(object sender, ListViewItemSelectionChangedEventArgs args) { if (repo == null || listView.SelectedItems.Count == 0) { return; } var lvItem = listView.SelectedItems[0]; var meta = (ReplayMeta)lvItem.Tag; var data = repo.GetData(meta); debugTextArea.Text = meta.ToString() + "\r\n\r\n" + data.Moves.ToDelimitedString("\r\n"); SelectedReplay = new ReplayFullData(meta, data); ReplayChanged?.Invoke(); }