Skip to content

Commit

Permalink
- Quake Live: added "Score" column
Browse files Browse the repository at this point in the history
- Quake Live: added "Team" and "Skill" columns to player list (using data from qlstats.net)
- Quake Live: added context menu to Player list with options for steam chat, friend request, steam profile, qlstats profile
- Quake Live: changed ghost-player time limit from 4h to 1h
- Ghost players are also removed from the player list now
- TOXIKK: remove "ghost players" from player counts
- Player list is sorted by Score
- upgrade to latest DevExpress version
  • Loading branch information
PredatH0r committed Dec 31, 2015
1 parent 90d0c71 commit 76e1008
Show file tree
Hide file tree
Showing 13 changed files with 421 additions and 73 deletions.
10 changes: 7 additions & 3 deletions ServerBrowser/Games/GameExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class GameExtension
protected bool supportsPlayersQuery = true;
protected bool supportsConnectAsSpectator = false;

public Steamworks Steamworks { get; set; }

// menu

public string OptionMenuCaption { get; protected set; } = null;
Expand Down Expand Up @@ -82,7 +84,7 @@ public virtual bool AcceptGameServer(IPEndPoint server)
}
#endregion

public virtual void Refresh() { }
public virtual void Refresh(ServerRow row = null, Action callback = null) { }

// server list UI

Expand Down Expand Up @@ -255,7 +257,7 @@ public virtual void Rcon(ServerRow row, int port, string password, string comman
return 0;
}

public virtual bool IsValidPlayer(Player player)
public virtual bool IsValidPlayer(ServerRow row, Player player)
{
return true;
}
Expand All @@ -282,10 +284,12 @@ public PlayerContextMenuItem(string text, Action handler, bool isDefaultAction =
public class GameExtensionPool : IEnumerable<KeyValuePair<Game, GameExtension>>
{
private readonly Dictionary<Game, GameExtension> extensions = new Dictionary<Game, GameExtension>();
public Steamworks Steamworks { get; set; }

public void Add(Game game, GameExtension extension)
{
extensions[game] = extension;
extension.Steamworks = this.Steamworks;
}

public GameExtension Get(Game game)
Expand All @@ -294,7 +298,7 @@ public GameExtension Get(Game game)
if (!this.extensions.TryGetValue(game, out extension))
{
extension = new GameExtension();
this.extensions.Add(game, extension);
this.Add(game, extension);
}
return extension;
}
Expand Down
Loading

0 comments on commit 76e1008

Please sign in to comment.