2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-05 01:27:03 +00:00
|
|
|
|
2020-03-12 18:45:20 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/CFactoryMgr.hpp"
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/IObj.hpp"
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Particle/CDecalDescription.hpp"
|
2016-02-10 22:54:47 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-02-10 22:54:47 +00:00
|
|
|
class CSimplePool;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CDecalDataFactory {
|
|
|
|
static bool CreateDPSM(CDecalDescription* desc, CInputStream& in, CSimplePool* resPool);
|
2020-03-12 18:45:20 +00:00
|
|
|
static std::unique_ptr<CDecalDescription> CreateGeneratorDescription(CInputStream& in, CSimplePool* resPool);
|
2018-12-08 05:30:43 +00:00
|
|
|
static void GetQuadDecalInfo(CInputStream& in, CSimplePool* resPool, FourCC clsId, SQuadDescr& quad);
|
2017-02-13 21:29:00 +00:00
|
|
|
|
2016-02-10 22:54:47 +00:00
|
|
|
public:
|
2020-03-12 18:45:20 +00:00
|
|
|
static std::unique_ptr<CDecalDescription> GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
2016-02-10 22:54:47 +00:00
|
|
|
};
|
|
|
|
|
2017-02-13 21:29:00 +00:00
|
|
|
CFactoryFnReturn FDecalDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
|
|
|
CObjectReference*);
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|