4#include "GameConstantsAndTypes.h"
5#include "ThemeMetric.h"
8#define RADAR_VAL_UNKNOWN (-1)
16 int m_Values[NUM_RadarCategory];
19 auto operator[](RadarCategory cat)
const ->
int {
return m_Values[cat]; }
20 auto operator[](RadarCategory cat) ->
int& {
return m_Values[cat]; }
21 auto operator[](
int cat)
const ->
int {
return m_Values[cat]; }
22 auto operator[](
int cat) ->
int& {
return m_Values[cat]; }
35 FOREACH_ENUM(RadarCategory, rc) { (*this)[rc] += other[rc]; }
45 FOREACH_ENUM(RadarCategory, rc)
47 if ((*
this)[rc] != other[rc]) {
63 [[nodiscard]]
auto CreateNode() const ->
XNode*;
64 void LoadFromNode(const
XNode* pNode);
66 [[nodiscard]] auto ToString(
int iMaxValues = -1) const
68 void FromString(const std::
string& sValues);
74 void PushSelf(lua_State* L);
The theme specific data.
Definition ThemeMetric.h:52
Cached song statistics.
Definition RadarValues.h:14
auto operator+=(const RadarValues &other) -> RadarValues &
Add one set of radar values to another.
Definition RadarValues.h:33
auto operator!=(const RadarValues &other) const -> bool
Determine if one set of radar values are not equal to another.
Definition RadarValues.h:58
auto operator==(const RadarValues &other) const -> bool
Determine if one set of radar values are equal to another.
Definition RadarValues.h:43