summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NamespaceSerializer.h
blob: d7902409fc75135c65bc9550e8ba5748f188bfad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}