summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NamespaceSerializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorldStorage/NamespaceSerializer.h')
-rw-r--r--src/WorldStorage/NamespaceSerializer.h21
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);
+}