2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-26 14:21:49 +00:00

Parse game and block commands

This commit is contained in:
Jan
2021-02-19 10:03:34 +01:00
parent 2747e1f0f2
commit 1264be4274
11 changed files with 177 additions and 5 deletions

View File

@ -1,5 +1,8 @@
#pragma once
#include <unordered_map>
#include "Utils/ClassUtils.h"
#include "Parsing/Commands/Impl/CommandsParser.h"
class SequenceBlock final : public CommandsParser::sequence_t
@ -9,6 +12,11 @@ class SequenceBlock final : public CommandsParser::sequence_t
static constexpr auto CAPTURE_BLOCK_ENUM_ENTRY = 1;
static constexpr auto CAPTURE_BLOCK_TYPE = 2;
std::unordered_map<std::string, FastFileBlockType> m_type_lookup;
void AddFastFileBlockToLookup(std::string name, FastFileBlockType type);
_NODISCARD bool GetFastFileBlockNameByType(const std::string& name, FastFileBlockType& type) const;
protected:
void ProcessMatch(CommandsParserState* state, SequenceResult<CommandsParserValue>& result) const override;