mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
28 lines
827 B
C++
28 lines
827 B
C++
#pragma once
|
|
|
|
#include "AssetLoading/IZoneAssetLoaderState.h"
|
|
#include "Domain/CommonFunctionDef.h"
|
|
#include "Domain/CommonMenuDef.h"
|
|
|
|
#include <string>
|
|
|
|
namespace menu
|
|
{
|
|
class MenuAssetZoneState final : public IZoneAssetLoaderState
|
|
{
|
|
public:
|
|
std::vector<std::unique_ptr<CommonFunctionDef>> m_functions;
|
|
std::vector<std::unique_ptr<CommonMenuDef>> m_menus;
|
|
|
|
std::map<std::string, CommonFunctionDef*> m_functions_by_name;
|
|
|
|
std::map<std::string, std::vector<std::string>> m_menus_to_load_by_menu;
|
|
|
|
MenuAssetZoneState() = default;
|
|
|
|
void AddFunction(std::unique_ptr<CommonFunctionDef> function);
|
|
void AddMenu(std::unique_ptr<CommonMenuDef> menu);
|
|
void AddMenusToLoad(std::string menuName, std::vector<std::string> menusToLoad);
|
|
};
|
|
} // namespace menu
|