mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-27 19:38:07 +00:00
chore: initialize KeyValuePairsCompiler for T6 as obj compiler
This commit is contained in:
+9
-4
@@ -1,4 +1,4 @@
|
||||
#include "KeyValuePairsCreator.h"
|
||||
#include "KeyValuePairsCompiler.h"
|
||||
|
||||
#include "Game/T6/CommonT6.h"
|
||||
#include "Game/T6/T6.h"
|
||||
@@ -8,18 +8,23 @@
|
||||
|
||||
using namespace T6;
|
||||
|
||||
KeyValuePairsCreator::KeyValuePairsCreator(const Zone& zone, const ZoneDefinition& zoneDefinition)
|
||||
KeyValuePairsCompiler::KeyValuePairsCompiler(const Zone& zone, const ZoneDefinition& zoneDefinition)
|
||||
: m_zone(zone),
|
||||
m_zone_definition(zoneDefinition)
|
||||
{
|
||||
}
|
||||
|
||||
AssetCreationResult KeyValuePairsCreator::CreateAsset(const std::string& assetName, AssetCreationContext& context)
|
||||
std::optional<asset_type_t> KeyValuePairsCompiler::GetHandlingAssetType() const
|
||||
{
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
AssetCreationResult KeyValuePairsCompiler::CreateAsset(const std::string& assetName, AssetCreationContext& context)
|
||||
{
|
||||
return AssetCreationResult::NoAction();
|
||||
}
|
||||
|
||||
void KeyValuePairsCreator::FinalizeZone(AssetCreationContext& context)
|
||||
void KeyValuePairsCompiler::FinalizeZone(AssetCreationContext& context)
|
||||
{
|
||||
std::vector<KeyValuePair> kvpList;
|
||||
auto& memory = *m_zone.GetMemory();
|
||||
+3
-2
@@ -6,11 +6,12 @@
|
||||
|
||||
namespace T6
|
||||
{
|
||||
class KeyValuePairsCreator : public AssetCreator<AssetKeyValuePairs>
|
||||
class KeyValuePairsCompiler final : public IAssetCreator
|
||||
{
|
||||
public:
|
||||
KeyValuePairsCreator(const Zone& zone, const ZoneDefinition& zoneDefinition);
|
||||
KeyValuePairsCompiler(const Zone& zone, const ZoneDefinition& zoneDefinition);
|
||||
|
||||
[[nodiscard]] std::optional<asset_type_t> GetHandlingAssetType() const override;
|
||||
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override;
|
||||
void FinalizeZone(AssetCreationContext& context) override;
|
||||
|
||||
Reference in New Issue
Block a user