Adding new monster types to enum and saving/loading for easier future implementation (#4941)
* added new monster types to enum added string <-> enum conversion in namespace serializer added loading functions added to saving * renamed zombie pigman to zombified piglins in enum Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user