Move menu parsing classes to menu namespace

This commit is contained in:
Jan
2021-11-01 09:43:07 +01:00
parent 38d60983e8
commit ff823b4722
26 changed files with 197 additions and 132 deletions

View File

@ -2,8 +2,11 @@
#include <string>
class CommonFunctionDef
namespace menu
{
public:
std::string m_name;
};
class CommonFunctionDef
{
public:
std::string m_name;
};
}

View File

@ -2,8 +2,11 @@
#include <string>
class CommonItemDef
namespace menu
{
public:
std::string m_name;
};
class CommonItemDef
{
public:
std::string m_name;
};
}

View File

@ -5,9 +5,12 @@
#include "CommonItemDef.h"
class CommonMenuDef
namespace menu
{
public:
std::string m_name;
std::vector<std::unique_ptr<CommonItemDef>> m_items;
};
class CommonMenuDef
{
public:
std::string m_name;
std::vector<std::unique_ptr<CommonItemDef>> m_items;
};
}

View File

@ -1,7 +1,10 @@
#pragma once
enum class MenuFeatureLevel
namespace menu
{
IW4,
IW5
};
enum class FeatureLevel
{
IW4,
IW5
};
}

View File

@ -6,10 +6,13 @@
#include "CommonFunctionDef.h"
#include "CommonMenuDef.h"
class MenuParsingResult
namespace menu
{
public:
std::vector<std::unique_ptr<CommonMenuDef>> m_menus;
std::vector<std::unique_ptr<CommonFunctionDef>> m_functions;
std::vector<std::string> m_menus_to_load;
};
class ParsingResult
{
public:
std::vector<std::unique_ptr<CommonMenuDef>> m_menus;
std::vector<std::unique_ptr<CommonFunctionDef>> m_functions;
std::vector<std::string> m_menus_to_load;
};
}