public void OnMapChange(TrackingServerInfo args) { // Tuple<string,string,string> entry = new Tuple<string, string, string>() PlayEntry entry = new PlayEntry(args.playerCount.ToString(), args.serverIP, System.DateTime.Now.ToShortDateString() + " : " + System.DateTime.Now.ToShortTimeString()); AddEntry(args.currentMap, entry); savePersistentData(); UpdateList(); }
public void AddEntry(string MapName, PlayEntry Entry) { if (MapTests.ContainsKey(MapName)) { MapTests[MapName].Add(Entry); } else { MapTests.Add(MapName, new List <PlayEntry>() { Entry }); } savePersistentData(); }
protected virtual void OnPlayEntry(PlaylistEntry entry) { SelectedEntry = entry; PlayEntry?.Invoke(this, entry); }