diff options
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/NamespaceSerializer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WorldStorage/NamespaceSerializer.h b/src/WorldStorage/NamespaceSerializer.h new file mode 100644 index 000000000..d7902409f --- /dev/null +++ b/src/WorldStorage/NamespaceSerializer.h @@ -0,0 +1,21 @@ +#pragma once + +#include "../Registries/Statistics.h" + +namespace NamespaceSerializer +{ + enum class Namespace + { + Minecraft, + Cuberite, + Unknown + }; + + unsigned DataVersion(); + + const char * From(Statistic ID); + + Statistic ToCustomStatistic(std::string_view ID); + + std::pair<Namespace, std::string_view> SplitNamespacedID(std::string_view ID); +} |