metaforce/Runtime/GuiSys/CGuiWidgetIdDB.hpp

22 lines
366 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-03-11 22:50:15 +00:00
#include <unordered_map>
#include "RetroTypes.hpp"
namespace urde
{
class CGuiWidgetIdDB
{
std::unordered_map<std::string, s16> x0_dbMap;
s16 x14_lastPoolId = 0;
public:
CGuiWidgetIdDB();
2017-11-13 06:19:18 +00:00
s16 FindWidgetID(std::string_view name) const;
s16 AddWidget(std::string_view name, s16 id);
s16 AddWidget(std::string_view name);
2016-03-11 22:50:15 +00:00
};
}