Unlinker: Make zone files creators game dependent and in the unlinker project instead of the ObjWriting component

This commit is contained in:
Jan
2020-02-18 17:15:51 +01:00
parent 992e9cea30
commit 9572391082
18 changed files with 217 additions and 40 deletions

View File

@ -1,7 +1,6 @@
#pragma once
#include "Zone/Zone.h"
#include "Utils/FileAPI.h"
class IZoneDumper
{
@ -10,5 +9,4 @@ public:
virtual bool CanHandleZone(Zone* zone) const = 0;
virtual bool DumpZone(Zone* zone, const std::string& basePath) const = 0;
virtual bool WriteZoneDefinition(Zone* zone, FileAPI::File* file) const = 0;
};

View File

@ -78,9 +78,4 @@ bool ZoneDumperT6::DumpZone(Zone* zone, const std::string& basePath) const
return true;
#undef DUMP_ASSET_POOL
}
bool ZoneDumperT6::WriteZoneDefinition(Zone* zone, FileAPI::File* file) const
{
return true;
}

View File

@ -6,5 +6,4 @@ class ZoneDumperT6 final : public IZoneDumper
public:
bool CanHandleZone(Zone* zone) const override;
bool DumpZone(Zone* zone, const std::string& basePath) const override;
bool WriteZoneDefinition(Zone* zone, FileAPI::File* file) const override;
};

View File

@ -26,9 +26,4 @@ bool ObjWriting::DumpZone(Zone* zone, const std::string& basePath)
}
return false;
}
bool ObjWriting::WriteZoneDefinition(Zone* zone, FileAPI::File* file)
{
return file->Printf("// %s", "Insert zone definition here") > 0;
}

View File

@ -1,7 +1,6 @@
#pragma once
#include "Zone/Zone.h"
#include "Utils/FileAPI.h"
#include <string>
class ObjWriting
@ -18,10 +17,8 @@ public:
bool Verbose = false;
ImageOutputFormat_e ImageOutputFormat = ImageOutputFormat_e::DDS;
bool MinimalZoneFileOutput = false;
} Configuration;
static bool DumpZone(Zone* zone, const std::string& basePath);
static bool WriteZoneDefinition(Zone* zone, FileAPI::File* file);
};