neoLegacy/Minecraft.World/EntityTypeMap.h
Lord_Cambion f5f0a74828 feat: better kill command, Host Privileges check
i changed a bit the kill command because it was not working properly,
then i added a check for HostPrivileges for each command
2026-05-31 17:32:43 +02:00

21 lines
475 B
C++

#pragma once
#include "../Minecraft.World/Class.h"
#include <unordered_map>
#include <string>
using namespace std;
class EntityTypeMap
{
public:
static eINSTANCEOF getTypeFromName(const wstring& name);
static wstring getNameFromType(eINSTANCEOF type);
static bool isValidType(const wstring& name);
private:
static const unordered_map<wstring, eINSTANCEOF>& getNameToTypeMap();
static const unordered_map<eINSTANCEOF, wstring>& getTypeToNameMap();
};