Show total playtime in player list and AHelp window (#20980)

This commit is contained in:
DrSmugleaf
2023-10-14 01:55:40 -07:00
committed by GitHub
parent 5ecd5f7521
commit 3a2482420f
10 changed files with 48 additions and 4 deletions

View File

@@ -13,5 +13,12 @@ namespace Content.Shared.Administration
NetEntity? NetEntity,
NetUserId SessionId,
bool Connected,
bool ActiveThisRound);
bool ActiveThisRound,
TimeSpan? OverallPlaytime)
{
public string PlaytimeString()
{
return OverallPlaytime?.ToString("%d':'hh':'mm") ?? Loc.GetString("generic-unknown-title");
}
}
}