Add Statistics and Achievements for newer Network standards
This commit is contained in:
21
src/WorldStorage/NamespaceSerializer.h
Normal file
21
src/WorldStorage/NamespaceSerializer.h
Normal file
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user