Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void AddEntry(string MapName, PlayEntry Entry)
 {
     if (MapTests.ContainsKey(MapName))
     {
         MapTests[MapName].Add(Entry);
     }
     else
     {
         MapTests.Add(MapName, new List <PlayEntry>()
         {
             Entry
         });
     }
     savePersistentData();
 }
Ejemplo n.º 3
0
 protected virtual void OnPlayEntry(PlaylistEntry entry)
 {
     SelectedEntry = entry;
     PlayEntry?.Invoke(this, entry);
 }