4jcraft/minecraft/Minecraft.Client/Common/Source Files/GameRules/WstringLookup.h
2026-03-31 13:50:13 -05:00

22 lines
409 B
C++

#pragma once
#include <string>
#include <unordered_map>
#include <vector>
class WstringLookup {
private:
unsigned int numIDs;
std::unordered_map<std::wstring, unsigned int> str2int;
std::vector<std::wstring> int2str;
public:
WstringLookup();
std::wstring lookup(unsigned int id);
unsigned int lookup(std::wstring);
void getTable(std::wstring** lookup, unsigned int* len);
};