mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Make sure state maps define rules for all entries
This commit is contained in:
parent
189c82a787
commit
fe59cbdee1
@ -31,6 +31,15 @@ bool StateMapReader::IsValidEndState(const StateMapParserState* state) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto i = 0u; i < state->m_layout.m_layout_entries.size(); i++)
|
||||||
|
{
|
||||||
|
if (state->m_definition->m_state_map_entries[i].m_rules.empty())
|
||||||
|
{
|
||||||
|
std::cerr << "In \"" << m_file_name << "\": State map must define a rule for \"" << state->m_layout.m_layout_entries[i].m_name << "\"!\n";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user