]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/scores.qh
Added PlayerScore_Get function.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / scores.qh
index cf767659056d5f9cef2a39ae063d18a5923c8c5e..60de66904bf66f1513b051906279664b43868a3f 100644 (file)
@@ -24,6 +24,14 @@ void PlayerScore_Detach(entity player);
  */
 float PlayerScore_Add(entity player, PlayerScoreField scorefield, float score);
 
+/**
+ * \brief Returns the player's score.
+ * \param[in] player Player to inspect.
+ * \param[in] scorefield Field of the score.
+ * \return Player's score.
+ */
+float PlayerScore_Get(entity player, PlayerScoreField scorefield);
+
 /**
  * Initialize the score of this player if needed.
  * Does nothing in teamplay.