2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-25 09:23:03 +00:00
This commit is contained in:
Jan Laupetin
2026-01-23 21:55:27 +00:00
parent 7160c160b7
commit b3f83a4028
41 changed files with 336 additions and 224 deletions

View File

@@ -0,0 +1,29 @@
#pragma once
#include "Techset/StateMap/StateMapDefinition.h"
#include "Techset/StateMap/StateMapLayout.h"
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
namespace state_map
{
class StateMapParserState
{
public:
const StateMapLayout& m_layout;
std::unordered_map<std::string, size_t> m_valid_state_map_entry_names;
std::unordered_map<std::string, size_t> m_valid_vars;
std::set<std::string> m_valid_values;
std::unique_ptr<StateMapDefinition> m_definition;
bool m_in_entry;
bool m_entry_has_default;
size_t m_current_entry_index;
StateMapRule* m_current_rule;
StateMapParserState(std::string stateMapName, const StateMapLayout& layout);
};
} // namespace state_map