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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user