]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/playerstats.qh
player stats: send all info from scoreboard
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / playerstats.qh
1 // time the player was alive and kicking
2 string PLAYERSTATS_ALIVETIME  = "alivetime";
3 string PLAYERSTATS_WINS = "wins";
4 string PLAYERSTATS_MATCHES = "matches";
5 string PLAYERSTATS_TOTAL = "total-";
6 string PLAYERSTATS_SCOREBOARD = "scoreboard-";
7
8 // delay map switch until this is set
9 float playerstats_waitforme;
10
11 // call at initialization
12 void PlayerStats_Init();
13
14 // add a new player
15 void PlayerStats_AddPlayer(entity e);
16
17 // add a new event
18 void PlayerStats_AddEvent(string event_id);
19
20 // call on each event to track, or at player disconnect OR match end for "global stuff"
21 void PlayerStats_Event(entity e, string event_id, float value);
22
23 // call at game over
24 void PlayerStats_Shutdown(); // send stats to the server
25
26 // URI GET callback
27 void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data);
28
29 // call this whenever a player leaves
30 void PlayerStats_AddGlobalInfo(entity p);
31
32 // call this at the end of the match
33 void PlayerStats_EndMatch()