mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
chore: rename ZoneAssetLoaderState to ZoneAssetCreationState
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Asset/AssetCreatorCollection.h"
|
||||
#include "Asset/IZoneAssetCreationState.h"
|
||||
#include "Asset/ZoneDefinitionContext.h"
|
||||
#include "Gdt/IGdtQueryable.h"
|
||||
#include "SearchPath/ISearchPath.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Asset/IZoneAssetLoaderState.h"
|
||||
#include "Asset/IZoneAssetCreationState.h"
|
||||
#include "SearchPath/ISearchPath.h"
|
||||
|
||||
#include <filesystem>
|
||||
@ -21,7 +21,7 @@ private:
|
||||
std::vector<std::string> m_image_names;
|
||||
};
|
||||
|
||||
class IPakCreator : public IZoneAssetLoaderState
|
||||
class IPakCreator : public IZoneAssetCreationState
|
||||
{
|
||||
public:
|
||||
IPakToCreate* GetOrAddIPak(const std::string& ipakName);
|
||||
|
@ -39,7 +39,7 @@ void AbstractImageIPakPostProcessor::FindNextObjContainer(AssetCreationContext&
|
||||
if (objContainer.m_type != ZoneDefinitionObjContainerType::IPAK)
|
||||
continue;
|
||||
|
||||
auto& ipakCreator = context.GetZoneAssetLoaderState<IPakCreator>();
|
||||
auto& ipakCreator = context.GetZoneAssetCreationState<IPakCreator>();
|
||||
m_current_ipak = ipakCreator.GetOrAddIPak(objContainer.m_name);
|
||||
m_current_ipak_start_index = objContainer.m_asset_start;
|
||||
m_current_ipak_end_index = objContainer.m_asset_end;
|
||||
@ -70,5 +70,5 @@ void AbstractImageIPakPostProcessor::PostProcessAsset(XAssetInfoGeneric& assetIn
|
||||
|
||||
void AbstractImageIPakPostProcessor::FinalizeZone(AssetCreationContext& context)
|
||||
{
|
||||
context.GetZoneAssetLoaderState<IPakCreator>().Finalize(m_search_path, m_out_dir);
|
||||
context.GetZoneAssetCreationState<IPakCreator>().Finalize(m_search_path, m_out_dir);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ void AbstractImageIwdPostProcessor::FindNextObjContainer(AssetCreationContext& c
|
||||
if (objContainer.m_type != ZoneDefinitionObjContainerType::IWD)
|
||||
continue;
|
||||
|
||||
auto& iwdCreator = context.GetZoneAssetLoaderState<IwdCreator>();
|
||||
auto& iwdCreator = context.GetZoneAssetCreationState<IwdCreator>();
|
||||
m_current_iwd = iwdCreator.GetOrAddIwd(objContainer.m_name);
|
||||
m_current_iwd_start_index = objContainer.m_asset_start;
|
||||
m_current_iwd_end_index = objContainer.m_asset_end;
|
||||
@ -71,5 +71,5 @@ void AbstractImageIwdPostProcessor::PostProcessAsset(XAssetInfoGeneric& assetInf
|
||||
|
||||
void AbstractImageIwdPostProcessor::FinalizeZone(AssetCreationContext& context)
|
||||
{
|
||||
context.GetZoneAssetLoaderState<IwdCreator>().Finalize(m_search_path, m_out_dir);
|
||||
context.GetZoneAssetCreationState<IwdCreator>().Finalize(m_search_path, m_out_dir);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Asset/IZoneAssetLoaderState.h"
|
||||
#include "Asset/IZoneAssetCreationState.h"
|
||||
#include "SearchPath/ISearchPath.h"
|
||||
|
||||
#include <filesystem>
|
||||
@ -21,7 +21,7 @@ private:
|
||||
std::vector<std::string> m_file_paths;
|
||||
};
|
||||
|
||||
class IwdCreator : public IZoneAssetLoaderState
|
||||
class IwdCreator : public IZoneAssetCreationState
|
||||
{
|
||||
public:
|
||||
IwdToCreate* GetOrAddIwd(const std::string& iwdName);
|
||||
|
Reference in New Issue
Block a user