5 #define REGISTER_SP(id) REGISTER(Scores, SP, id, m_id, new_pure(PlayerScoreField)) 121 #define SFL_ZERO_IS_WORST SFL_TIME 130 #define IS_INCREASING(x) ( (x) & SFL_LOWER_IS_BETTER ) 131 #define IS_DECREASING(x) ( !((x) & SFL_LOWER_IS_BETTER) ) 138 #define scores(this) _scores[(this).m_id] 139 #define scores_label(this) ((this).m_name) 140 #define scores_flags(this) ((this).m_flags) 142 #define MAX_TEAMSCORE 2 145 #define teamscores(i) _teamscores[i] 147 #define teamscores_label(i) _teamscores_label[i] 149 #define teamscores_flags(i) _teamscores_flags[i]
const int SFL_SORT_PRIO_MASK
const int SFL_HIDE_ZERO
Don't show zero values as scores.
int _teamscores_flags[MAX_TEAMSCORE]
const int SFL_SORT_PRIO_SECONDARY
Scoring priority (NOTE: PRIMARY is used for fraglimit)
REGISTRY(Scores, MAX_SCORE)
const int SFL_SORT_PRIO_PRIMARY
const int SFL_RANK
Display as a rank (with st, nd, rd, th suffix)
STATIC_INIT(Scores_renumber)
const int SFL_LOWER_IS_BETTER
Lower scores are better (e.g.
#define REGISTER_REGISTRY(id)
#define REGISTRY_DEFINE_GET(id, null)
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
string _teamscores_label[MAX_TEAMSCORE]
int _teamscores[MAX_TEAMSCORE]
#define FOREACH(list, cond, body)
const int SFL_TIME
Display as mm:ss.s, value is stored as 10ths of a second (AND 0 is the worst possible value!) ...
const int SFL_ALLOW_HIDE
Allow a column to be hidden (do not automatically add it even if it is a sorting key) ...