2016-03-11 22:50:15 +00:00
|
|
|
#ifndef __URDE_CGUIWIDGETIDDB_HPP__
|
|
|
|
#define __URDE_CGUIWIDGETIDDB_HPP__
|
|
|
|
|
|
|
|
#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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CGUIWIDGETIDDB_HPP__
|