mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 08:47:57 -05:00
Reformat code with clang format
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
#include "CodeGenerator.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
#include "Domain/Computations/StructureComputations.h"
|
||||
#include "Templates/AssetStructTestsTemplate.h"
|
||||
#include "Templates/ZoneLoadTemplate.h"
|
||||
#include "Templates/ZoneWriteTemplate.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
CodeGenerator::CodeGenerator(const ZoneCodeGeneratorArguments* args)
|
||||
@ -68,7 +68,7 @@ bool CodeGenerator::GetAssetWithName(IDataRepository* repository, const std::str
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!StructureComputations(info).IsAsset())
|
||||
if (!StructureComputations(info).IsAsset())
|
||||
{
|
||||
std::cout << "Type is not an asset '" << name << "'" << std::endl;
|
||||
return false;
|
||||
@ -109,11 +109,13 @@ bool CodeGenerator::GenerateCode(IDataRepository* repository)
|
||||
auto context = RenderingContext::BuildContext(repository, asset);
|
||||
if (!GenerateCodeForTemplate(context.get(), foundTemplate->second.get()))
|
||||
{
|
||||
std::cout << "Failed to generate code for asset '" << asset->m_definition->GetFullName() << "' with preset '" << foundTemplate->first << "'\n";
|
||||
std::cout << "Failed to generate code for asset '" << asset->m_definition->GetFullName() << "' with preset '" << foundTemplate->first
|
||||
<< "'\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
std::cout << "Successfully generated code for asset '" << asset->m_definition->GetFullName() << "' with preset '" << foundTemplate->first << "'\n";
|
||||
|
||||
std::cout << "Successfully generated code for asset '" << asset->m_definition->GetFullName() << "' with preset '" << foundTemplate->first
|
||||
<< "'\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user