summaryrefslogblamecommitdiffstats
path: root/src/WorldStorage/NamespaceSerializer.h
blob: 5b0093bcc95a6c2299685e21c8f5f3c3f0edf0f2 (plain) (tree)
1
2
3
4


                                     
                                 











                               

                                                 
 

                                                           


                                                                                      
#pragma once

#include "../Registries/Statistics.h"
#include "../Mobs/MonsterTypes.h"

namespace NamespaceSerializer
{
	enum class Namespace
	{
		Minecraft,
		Cuberite,
		Unknown
	};

	unsigned DataVersion();

	std::string_view From(Statistic a_ID);
	std::string_view From(eMonsterType a_ID);

	Statistic ToCustomStatistic(std::string_view a_ID);
	eMonsterType ToMonsterType(std::string_view a_ID);

	std::pair<Namespace, std::string_view> SplitNamespacedID(std::string_view ID);
}