2020-08-12 08:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-15 02:47:55 +00:00
|
|
|
#include "Defines.h"
|
|
|
|
#include "Mobs/MonsterTypes.h"
|
2021-05-04 15:11:56 +00:00
|
|
|
#include "Registries/CustomStatistics.h"
|
2020-08-12 08:54:36 +00:00
|
|
|
|
|
|
|
namespace NamespaceSerializer
|
|
|
|
{
|
|
|
|
enum class Namespace
|
|
|
|
{
|
|
|
|
Minecraft,
|
|
|
|
Cuberite,
|
|
|
|
Unknown
|
|
|
|
};
|
|
|
|
|
|
|
|
unsigned DataVersion();
|
|
|
|
|
2021-05-03 20:07:09 +00:00
|
|
|
std::string_view From(CustomStatistic a_ID);
|
2020-11-22 23:41:13 +00:00
|
|
|
std::string_view From(eMonsterType a_ID);
|
2021-03-15 02:47:55 +00:00
|
|
|
std::string_view From(BannerPattern a_ID);
|
2020-08-12 08:54:36 +00:00
|
|
|
|
2021-05-03 20:07:09 +00:00
|
|
|
CustomStatistic ToCustomStatistic(std::string_view a_ID);
|
2020-11-22 23:41:13 +00:00
|
|
|
eMonsterType ToMonsterType(std::string_view a_ID);
|
2020-08-12 08:54:36 +00:00
|
|
|
|
|
|
|
std::pair<Namespace, std::string_view> SplitNamespacedID(std::string_view ID);
|
|
|
|
}
|