2020-01-15 12:07:48 +00:00
|
|
|
#include "Editor/ProjectResourceFactoryMP1.hpp"
|
2016-03-26 00:51:59 +00:00
|
|
|
|
2020-01-15 12:07:48 +00:00
|
|
|
#include "Runtime/CDependencyGroup.hpp"
|
2016-09-10 04:50:00 +00:00
|
|
|
#include "Runtime/CGameHintInfo.hpp"
|
2016-10-08 20:32:36 +00:00
|
|
|
#include "Runtime/CSaveWorld.hpp"
|
2020-01-15 12:07:48 +00:00
|
|
|
#include "Runtime/CSimplePool.hpp"
|
|
|
|
#include "Runtime/GameGlobalObjects.hpp"
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/Audio/CAudioGroupSet.hpp"
|
|
|
|
#include "Runtime/Audio/CMidiManager.hpp"
|
|
|
|
#include "Runtime/Audio/CSfxManager.hpp"
|
2017-03-24 05:30:16 +00:00
|
|
|
#include "Runtime/AutoMapper/CMapArea.hpp"
|
|
|
|
#include "Runtime/AutoMapper/CMapUniverse.hpp"
|
2020-01-15 12:07:48 +00:00
|
|
|
#include "Runtime/AutoMapper/CMapWorld.hpp"
|
2017-01-31 11:21:45 +00:00
|
|
|
#include "Runtime/CScannableObjectInfo.hpp"
|
2020-01-15 12:07:48 +00:00
|
|
|
#include "Runtime/Character/CAllFormatsAnimSource.hpp"
|
|
|
|
#include "Runtime/Character/CAnimCharacterSet.hpp"
|
|
|
|
#include "Runtime/Character/CAnimPOIData.hpp"
|
|
|
|
#include "Runtime/Character/CCharLayoutInfo.hpp"
|
|
|
|
#include "Runtime/Character/CSkinRules.hpp"
|
|
|
|
#include "Runtime/Collision/CCollidableOBBTreeGroup.hpp"
|
|
|
|
#include "Runtime/Collision/CCollisionResponseData.hpp"
|
|
|
|
#include "Runtime/Graphics/CModel.hpp"
|
|
|
|
#include "Runtime/Graphics/CTexture.hpp"
|
|
|
|
#include "Runtime/GuiSys/CGuiFrame.hpp"
|
|
|
|
#include "Runtime/GuiSys/CRasterFont.hpp"
|
|
|
|
#include "Runtime/GuiSys/CStringTable.hpp"
|
|
|
|
#include "Runtime/Particle/CDecalDataFactory.hpp"
|
|
|
|
#include "Runtime/Particle/CElectricDescription.hpp"
|
|
|
|
#include "Runtime/Particle/CGenDescription.hpp"
|
|
|
|
#include "Runtime/Particle/CParticleDataFactory.hpp"
|
|
|
|
#include "Runtime/Particle/CParticleElectricDataFactory.hpp"
|
|
|
|
#include "Runtime/Particle/CParticleSwooshDataFactory.hpp"
|
|
|
|
#include "Runtime/Particle/CProjectileWeaponDataFactory.hpp"
|
|
|
|
#include "Runtime/Particle/CSwooshDescription.hpp"
|
|
|
|
#include "Runtime/Particle/CWeaponDescription.hpp"
|
2018-02-14 07:51:18 +00:00
|
|
|
#include "Runtime/World/CPathFindArea.hpp"
|
2020-01-15 12:07:48 +00:00
|
|
|
|
2016-03-26 00:51:59 +00:00
|
|
|
#include "DataSpec/DNACommon/TXTR.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace DataSpec {
|
2016-03-26 00:51:59 +00:00
|
|
|
extern hecl::Database::DataSpecEntry SpecEntMP1;
|
|
|
|
extern hecl::Database::DataSpecEntry SpecEntMP1PC;
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace DataSpec
|
2016-03-26 00:51:59 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-03-26 00:51:59 +00:00
|
|
|
|
2016-03-27 20:43:04 +00:00
|
|
|
ProjectResourceFactoryMP1::ProjectResourceFactoryMP1(hecl::ClientProcess& clientProc)
|
2018-12-08 05:30:43 +00:00
|
|
|
: ProjectResourceFactoryBase(clientProc) {
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('TXTR'), FMemFactoryFunc(FTextureFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('PART'), FFactoryFunc(FParticleFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('FRME'), FFactoryFunc(RGuiFrameFactoryInGame));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('FONT'), FFactoryFunc(FRasterFontFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('CMDL'), FMemFactoryFunc(FModelFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('CINF'), FFactoryFunc(FCharLayoutInfo));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('CSKR'), FFactoryFunc(FSkinRulesFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('ANCS'), FFactoryFunc(FAnimCharacterSet));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('ANIM'), FFactoryFunc(AnimSourceFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('EVNT'), FFactoryFunc(AnimPOIDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('DCLN'), FFactoryFunc(FCollidableOBBTreeGroupFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('DGRP'), FFactoryFunc(FDependencyGroupFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('AGSC'), FMemFactoryFunc(FAudioGroupSetDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('CSNG'), FFactoryFunc(FMidiDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('ATBL'), FFactoryFunc(FAudioTranslationTableFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('STRG'), FFactoryFunc(FStringTableFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('HINT'), FFactoryFunc(FHintFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('SAVW'), FFactoryFunc(FSaveWorldFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('MAPW'), FFactoryFunc(FMapWorldFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('SCAN'), FFactoryFunc(FScannableObjectInfoFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('CRSC'), FFactoryFunc(FCollisionResponseDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('SWHC'), FFactoryFunc(FParticleSwooshDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('ELSC'), FFactoryFunc(FParticleElectricDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('WPSC'), FFactoryFunc(FProjectileWeaponDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('DPSC'), FFactoryFunc(FDecalDataFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('MAPA'), FFactoryFunc(FMapAreaFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('MAPU'), FFactoryFunc(FMapUniverseFactory));
|
|
|
|
m_factoryMgr.AddFactory(FOURCC('PATH'), FMemFactoryFunc(FPathFindAreaFactory));
|
2016-03-26 00:51:59 +00:00
|
|
|
}
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void ProjectResourceFactoryMP1::IndexMP1Resources(hecl::Database::Project& proj, CSimplePool& sp) {
|
|
|
|
BeginBackgroundIndex(proj, DataSpec::SpecEntMP1, DataSpec::SpecEntMP1PC);
|
2016-03-26 00:51:59 +00:00
|
|
|
}
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|