Split InfoString classes into multiple files depending on loading and writing code

This commit is contained in:
Jan
2021-03-24 13:51:21 +01:00
parent 9e00ad60e7
commit abcce11b00
36 changed files with 579 additions and 549 deletions

View File

@ -0,0 +1,15 @@
#include "InfoStringToStructConverter.h"
using namespace IW4;
void InfoStringToStructConverter::FillStructure()
{
}
InfoStringToStructConverter::InfoStringToStructConverter(const InfoString& infoString, void* structure,
const cspField_t* fields, const size_t fieldCount)
: InfoStringToStructConverterBase(infoString, structure),
m_fields(fields),
m_field_count(fieldCount)
{
}

View File

@ -0,0 +1,18 @@
#pragma once
#include "InfoString/InfoStringToStructConverterBase.h"
#include "Game/IW4/IW4.h"
namespace IW4
{
class InfoStringToStructConverter : public InfoStringToStructConverterBase
{
const cspField_t* m_fields;
size_t m_field_count;
protected:
void FillStructure() override;
public:
InfoStringToStructConverter(const InfoString& infoString, void* structure, const cspField_t* fields, size_t fieldCount);
};
}