metaforce/Runtime/GuiSys/CGuiWidgetIdDB.hpp

20 lines
372 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"
2018-12-08 05:30:43 +00:00
namespace urde {
class CGuiWidgetIdDB {
std::unordered_map<std::string, s16> x0_dbMap;
s16 x14_lastPoolId = 0;
2016-03-11 22:50:15 +00:00
public:
2018-12-08 05:30:43 +00:00
CGuiWidgetIdDB();
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
};
2018-12-08 05:30:43 +00:00
} // namespace urde