mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 08:18:21 -05:00
Load state maps when loading techniques
This commit is contained in:
@ -2,11 +2,12 @@
|
||||
|
||||
using namespace state_map;
|
||||
|
||||
StateMapParserState::StateMapParserState(const StateMapLayout& layout)
|
||||
StateMapParserState::StateMapParserState(std::string stateMapName, const StateMapLayout& layout)
|
||||
: m_layout(layout),
|
||||
m_definition(std::make_unique<StateMapDefinition>(layout.m_layout_entries.size())),
|
||||
m_definition(std::make_unique<StateMapDefinition>(std::move(stateMapName), layout.m_layout_entries.size())),
|
||||
m_in_entry(false),
|
||||
m_current_entry_index(0u)
|
||||
m_current_entry_index(0u),
|
||||
m_current_rule(nullptr)
|
||||
{
|
||||
for (auto i = 0u; i < m_layout.m_layout_entries.size(); i++)
|
||||
m_valid_state_map_entry_names.emplace(m_layout.m_layout_entries[i].m_name, i);
|
||||
|
Reference in New Issue
Block a user