mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
23 lines
485 B
C++
23 lines
485 B
C++
#include "SequenceItemDef.h"
|
|
|
|
#include "Parsing/Menu/MenuMatcherFactory.h"
|
|
|
|
using namespace menu;
|
|
|
|
SequenceItemDef::SequenceItemDef()
|
|
{
|
|
const MenuMatcherFactory create(this);
|
|
|
|
AddMatchers({
|
|
create.Keyword("itemDef"),
|
|
create.Char('{'),
|
|
});
|
|
}
|
|
|
|
void SequenceItemDef::ProcessMatch(MenuFileParserState* state, SequenceResult<SimpleParserValue>& result) const
|
|
{
|
|
assert(state->m_current_menu);
|
|
|
|
state->m_current_item = std::make_unique<CommonItemDef>();
|
|
}
|