4jcraft/Minecraft.Client/Utils/WstringLookup.h
2026-03-08 22:43:43 +01:00

20 lines
308 B
C++

#pragma once
using namespace std;
class WstringLookup
{
private:
UINT numIDs;
std::unordered_map<std::wstring, UINT> str2int;
std::vector<std::wstring> int2str;
public:
WstringLookup();
std::wstring lookup(UINT id);
UINT lookup(std::wstring);
VOID getTable(std::wstring **lookup, UINT *len);
};