mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "Game/IW5/IW5.h"
|
|
#include "InfoString/InfoStringToStructConverterBase.h"
|
|
|
|
namespace IW5
|
|
{
|
|
class InfoStringToStructConverter : public InfoStringToStructConverterBase
|
|
{
|
|
public:
|
|
InfoStringToStructConverter(const InfoString& infoString,
|
|
void* structure,
|
|
ZoneScriptStrings& zoneScriptStrings,
|
|
MemoryManager& memory,
|
|
AssetCreationContext& context,
|
|
GenericAssetRegistration& registration,
|
|
const cspField_t* fields,
|
|
size_t fieldCount);
|
|
bool Convert() override;
|
|
|
|
protected:
|
|
virtual bool ConvertExtensionField(const cspField_t& field, const std::string& value) = 0;
|
|
bool ConvertBaseField(const cspField_t& field, const std::string& value);
|
|
|
|
const cspField_t* m_fields;
|
|
size_t m_field_count;
|
|
};
|
|
} // namespace IW5
|