2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-03-11 14:50:15 -08:00
|
|
|
|
2020-04-11 15:51:39 -07:00
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
2016-03-11 14:50:15 -08:00
|
|
|
#include <unordered_map>
|
2019-09-22 14:52:05 -07:00
|
|
|
#include "Runtime/GCNTypes.hpp"
|
2016-03-11 14:50:15 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-12-07 21:30:43 -08:00
|
|
|
|
|
|
|
class CGuiWidgetIdDB {
|
|
|
|
std::unordered_map<std::string, s16> x0_dbMap;
|
|
|
|
s16 x14_lastPoolId = 0;
|
2016-03-11 14:50:15 -08:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08: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 14:50:15 -08:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|