summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NamespaceSerializer.h
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-11-23 00:41:13 +0100
committerGitHub <noreply@github.com>2020-11-23 00:41:13 +0100
commite35519ec8ab1b958408ab2a90b88dffc1bcc7fb2 (patch)
tree3ed498478eabe7aa01b54f85d8ec9c2bc821fe66 /src/WorldStorage/NamespaceSerializer.h
parentAdd coloured glass pane recipes (#5032) (diff)
downloadcuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.tar
cuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.tar.gz
cuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.tar.bz2
cuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.tar.lz
cuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.tar.xz
cuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.tar.zst
cuberite-e35519ec8ab1b958408ab2a90b88dffc1bcc7fb2.zip
Diffstat (limited to 'src/WorldStorage/NamespaceSerializer.h')
-rw-r--r--src/WorldStorage/NamespaceSerializer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/WorldStorage/NamespaceSerializer.h b/src/WorldStorage/NamespaceSerializer.h
index d7902409f..5b0093bcc 100644
--- a/src/WorldStorage/NamespaceSerializer.h
+++ b/src/WorldStorage/NamespaceSerializer.h
@@ -1,6 +1,7 @@
#pragma once
#include "../Registries/Statistics.h"
+#include "../Mobs/MonsterTypes.h"
namespace NamespaceSerializer
{
@@ -13,9 +14,11 @@ namespace NamespaceSerializer
unsigned DataVersion();
- const char * From(Statistic ID);
+ std::string_view From(Statistic a_ID);
+ std::string_view From(eMonsterType a_ID);
- Statistic ToCustomStatistic(std::string_view 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);
}