mirror of https://github.com/PrimeDecomp/prime.git
parent
1c213b5cc2
commit
0569f5a404
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include "Kyoto/Math/CTransform4f.hpp"
|
||||
#include "Kyoto/Math/CVector3f.hpp"
|
||||
#include "Kyoto/Math/CColor.hpp"
|
||||
#include "Kyoto/Math/CAABox.hpp"
|
||||
#include "Kyoto/Graphics/CColor.hpp"
|
||||
#include "Kyoto/Graphics/CLight.hpp"
|
||||
|
||||
class CWarp;
|
||||
|
|
|
@ -6,16 +6,18 @@
|
|||
|
||||
class IWeaponRenderer {
|
||||
public:
|
||||
virtual ~IWeaponRenderer() {};
|
||||
virtual ~IWeaponRenderer()=0;
|
||||
virtual void AddParticleGen(const CParticleGen& gen) = 0;
|
||||
static void SetRenderer(IWeaponRenderer* renderer) { sWeaponRenderer = renderer; }
|
||||
private:
|
||||
static IWeaponRenderer* sWeaponRenderer;
|
||||
};
|
||||
|
||||
inline IWeaponRenderer::~IWeaponRenderer() {}
|
||||
|
||||
class CDefaultWeaponRenderer : public IWeaponRenderer {
|
||||
public:
|
||||
virtual ~CDefaultWeaponRenderer() {};
|
||||
~CDefaultWeaponRenderer() {}
|
||||
void AddParticleGen(const CParticleGen& gen) { gen.Render(); }
|
||||
};
|
||||
|
||||
|
|
|
@ -380,7 +380,7 @@ WEAPONS :=\
|
|||
$(BUILD_DIR)/asm/Weapons/CProjectileWeapon.o\
|
||||
$(BUILD_DIR)/asm/Weapons/CProjectileWeaponDataFactory.o\
|
||||
$(BUILD_DIR)/asm/Weapons/CCollisionResponseData.o\
|
||||
$(BUILD_DIR)/asm/Weapons/IWeaponRenderer.o\
|
||||
$(BUILD_DIR)/src/Weapons/IWeaponRenderer.o\
|
||||
$(BUILD_DIR)/asm/Weapons/CDecalDataFactory.o\
|
||||
$(BUILD_DIR)/asm/Weapons/CDecal.o\
|
||||
$(BUILD_DIR)/asm/Weapons/CWeaponDescription.o\
|
||||
|
|
Loading…
Reference in New Issue