From f09019246d609abd42f41265de4fe955138de3ef Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 22 Feb 2016 18:08:13 -0800 Subject: [PATCH] Factory fixes --- Runtime/Particle/CDecalDataFactory.cpp | 8 +++++++- Runtime/Particle/CDecalDataFactory.hpp | 2 +- Runtime/Particle/CParticleElectricDataFactory.cpp | 2 +- Runtime/Particle/CProjectileWeaponDataFactory.cpp | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Runtime/Particle/CDecalDataFactory.cpp b/Runtime/Particle/CDecalDataFactory.cpp index 33d01bb1f..8427e1e9b 100644 --- a/Runtime/Particle/CDecalDataFactory.cpp +++ b/Runtime/Particle/CDecalDataFactory.cpp @@ -4,9 +4,15 @@ namespace pshag { -std::unique_ptr FDealDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms) +CDecalDescription* CDecalDataFactory::GetGeneratorDesc(CInputStream& in, CSimplePool* resPool) +{ + return nullptr; +} + +std::unique_ptr FDecalDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms) { CSimplePool* sp = static_cast(static_cast*>(vparms.GetObj())->GetParam()); return TToken::GetIObjObjectFor(std::unique_ptr(CDecalDataFactory::GetGeneratorDesc(in, sp))); } + } diff --git a/Runtime/Particle/CDecalDataFactory.hpp b/Runtime/Particle/CDecalDataFactory.hpp index 7d3426f2f..55bb7d22e 100644 --- a/Runtime/Particle/CDecalDataFactory.hpp +++ b/Runtime/Particle/CDecalDataFactory.hpp @@ -20,6 +20,6 @@ public: static bool CreateDPSM(CDecalDescription* desc,CInputStream& in,CSimplePool* resPool); }; -std::unique_ptr FDealDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms); +std::unique_ptr FDecalDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms); } #endif // __PSHAG_CDECALDATAFACTORY_HPP__ diff --git a/Runtime/Particle/CParticleElectricDataFactory.cpp b/Runtime/Particle/CParticleElectricDataFactory.cpp index a5c847c4c..47e548736 100644 --- a/Runtime/Particle/CParticleElectricDataFactory.cpp +++ b/Runtime/Particle/CParticleElectricDataFactory.cpp @@ -132,7 +132,7 @@ void CParticleElectricDataFactory::LoadELSMTokens(CElectricDescription* desc) desc->x60_EPSM.m_gen = desc->x60_EPSM.m_token.GetObj(); } -std::unique_ptr FParticleElecrticFactory(const pshag::SObjectTag &tag, pshag::CInputStream &in, const pshag::CVParamTransfer &vparms) +std::unique_ptr FParticleElectricDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms) { CSimplePool* sp = static_cast(static_cast*>(vparms.GetObj())->GetParam()); return TToken::GetIObjObjectFor(std::unique_ptr(CParticleElectricDataFactory::GetGeneratorDesc(in, sp))); diff --git a/Runtime/Particle/CProjectileWeaponDataFactory.cpp b/Runtime/Particle/CProjectileWeaponDataFactory.cpp index fa47bc7cb..d32a03a45 100644 --- a/Runtime/Particle/CProjectileWeaponDataFactory.cpp +++ b/Runtime/Particle/CProjectileWeaponDataFactory.cpp @@ -78,6 +78,9 @@ bool CProjectileWeaponDataFactory::CreateWPSM(CWeaponDescription* desc, CInputSt desc->x2a_AP11 = CPF::GetBool(in); break; case SBIG('AP21'): + desc->x2b_AP21 = CPF::GetBool(in); + break; + case SBIG('AS11'): desc->x2c_AS11 = CPF::GetBool(in); break; case SBIG('AS12'):