add separated list with a prefix
This commit is contained in:
parent
019d55afd2
commit
becc44a098
3 changed files with 7 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
|||
|
||||
#define VAR_LIST(section, name, type) std::vector<type> name;
|
||||
#define VAR_LIST_SEP(section, name, type, sep) std::vector<type> name;
|
||||
#define VAR_LIST_SEP_P(section, name, type, sep, prefix) std::vector<type> name;
|
||||
#define VAR_LIST_NUMBERED(section, name, type) std::vector<type> name;
|
||||
|
||||
#define ENUM(name, ...) \
|
||||
|
@ -162,4 +163,5 @@
|
|||
|
||||
#undef VAR_LIST
|
||||
#undef VAR_LIST_SEP
|
||||
#undef VAR_LIST_SEP_P
|
||||
#undef VAR_LIST_NUMBERED
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
|
||||
#define VAR_LIST(section, name, type)
|
||||
#define VAR_LIST_SEP(section, name, type, sep)
|
||||
#define VAR_LIST_SEP_P(section, name, type, sep, prefix)
|
||||
#define VAR_LIST_NUMBERED(section, name, type)
|
||||
#endif // CONFIG
|
||||
|
||||
|
@ -149,7 +150,7 @@ CONFIG(Difficulty,
|
|||
VAR_STRING(.metadata, creator)
|
||||
VAR_STRING(.metadata, version)
|
||||
VAR_STRING(.metadata, source)
|
||||
VAR_LIST_SEP(.metadata, tags, std::string, " ")
|
||||
VAR_LIST_SEP_P(.metadata, tags, std::string, " ", "Tags")
|
||||
VAR_UINT(.metadata, beatmapID)
|
||||
VAR_UINT(.metadata, beatmapSetID)
|
||||
)
|
||||
|
@ -264,5 +265,6 @@ STRUCT_OUTPUT_STREAM_OP(Difficulty,
|
|||
|
||||
#undef VAR_LIST
|
||||
#undef VAR_LIST_SEP
|
||||
#undef VAR_LIST_SEP_P
|
||||
#undef VAR_LIST_NUMBERED
|
||||
#endif // CONFIG_DEFINED
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace fs = std::filesystem;
|
|||
|
||||
#define VAR_LIST(section, name, type)
|
||||
#define VAR_LIST_SEP(section, name, type, sep)
|
||||
#define VAR_LIST_SEP_P(section, name, type, sep)
|
||||
#define VAR_LIST_NUMBERED(section, name, type)
|
||||
|
||||
#include <config_def.hpp>
|
||||
|
@ -80,4 +81,5 @@ namespace fs = std::filesystem;
|
|||
|
||||
#undef VAR_LIST
|
||||
#undef VAR_LIST_SEP
|
||||
#undef VAR_LIST_SEP_P
|
||||
#undef VAR_LIST_NUMBERED
|
||||
|
|
Loading…
Reference in a new issue