mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-25 22:27:53 -05:00
Reformat code with clang format
This commit is contained in:
@ -11,7 +11,7 @@ void ContentPrinter::PrintContent() const
|
||||
printf("Zone '%s' (%s)\n", m_zone->m_name.c_str(), m_zone->m_game->GetShortName().c_str());
|
||||
puts("Content:");
|
||||
|
||||
for(const auto& asset : *pools)
|
||||
for (const auto& asset : *pools)
|
||||
{
|
||||
printf("%s, %s\n", pools->GetAssetTypeName(asset->m_type), asset->m_name.c_str());
|
||||
}
|
||||
|
@ -10,4 +10,4 @@ public:
|
||||
explicit ContentPrinter(Zone* zone);
|
||||
|
||||
void PrintContent() const;
|
||||
};
|
||||
};
|
||||
|
@ -8,7 +8,7 @@ void AbstractZoneDefWriter::WriteZoneDef(std::ostream& stream, const UnlinkerArg
|
||||
out.WriteMetaData(META_DATA_KEY_GAME, zone->m_game->GetShortName());
|
||||
out.EmptyLine();
|
||||
|
||||
if(args->m_use_gdt)
|
||||
if (args->m_use_gdt)
|
||||
{
|
||||
out.WriteComment("Load asset gdt files");
|
||||
out.WriteMetaData(META_DATA_KEY_GDT, zone->m_name);
|
||||
@ -17,4 +17,4 @@ void AbstractZoneDefWriter::WriteZoneDef(std::ostream& stream, const UnlinkerArg
|
||||
|
||||
WriteMetaData(out, args, zone);
|
||||
WriteContent(out, args, zone);
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "UnlinkerArgs.h"
|
||||
#include "Zone/Zone.h"
|
||||
#include "Zone/Definition/ZoneDefinitionStream.h"
|
||||
#include "Zone/Zone.h"
|
||||
|
||||
class IZoneDefWriter
|
||||
{
|
||||
@ -23,10 +23,10 @@ class AbstractZoneDefWriter : public IZoneDefWriter
|
||||
protected:
|
||||
static constexpr const char* META_DATA_KEY_GAME = "game";
|
||||
static constexpr const char* META_DATA_KEY_GDT = "gdt";
|
||||
|
||||
|
||||
virtual void WriteMetaData(ZoneDefinitionOutputStream& stream, const UnlinkerArgs* args, Zone* zone) const = 0;
|
||||
virtual void WriteContent(ZoneDefinitionOutputStream& stream, const UnlinkerArgs* args, Zone* zone) const = 0;
|
||||
|
||||
public:
|
||||
void WriteZoneDef(std::ostream& stream, const UnlinkerArgs* args, Zone* zone) const override;
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user