mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-09 09:51:58 +00:00
Parse game and block commands
This commit is contained in:
1 parent
2747e1f0f2
commit
1264be4274
11 files changed
+177
-5
No files matched your search
@@ -0,0 +1,42 @@
|
||||
#include "CommandsParserState.h"
|
||||
|
||||
CommandsParserState::CommandsParserState(IDataRepository* repository)
|
||||
: m_repository(repository),
|
||||
m_in_use(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
const IDataRepository* CommandsParserState::GetRepository() const
|
||||
{
|
||||
return m_repository;
|
||||
}
|
||||
|
||||
void CommandsParserState::AddBlock(std::unique_ptr<FastFileBlock> block) const
|
||||
{
|
||||
m_repository->Add(std::move(block));
|
||||
}
|
||||
|
||||
void CommandsParserState::SetGame(std::string gameName) const
|
||||
{
|
||||
m_repository->SetGame(std::move(gameName));
|
||||
}
|
||||
|
||||
StructureInformation* CommandsParserState::GetInUse() const
|
||||
{
|
||||
return m_in_use;
|
||||
}
|
||||
|
||||
void CommandsParserState::SetInUse(StructureInformation* structure)
|
||||
{
|
||||
m_in_use = structure;
|
||||
}
|
||||
|
||||
bool CommandsParserState::GetMembersFromParts(const std::string& typeNameValue, StructureInformation* baseType, std::vector<MemberInformation*>& members)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CommandsParserState::GetTypenameAndMembersFromParts(const std::string& typeNameValue, StructureInformation*& structure, std::vector<MemberInformation*>& members)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user