prime/include/Weapons/IWeaponRenderer.hpp

25 lines
666 B
C++

#ifndef __IWEAPONRENDERER_HPP__
#define __IWEAPONRENDERER_HPP__
#include "Kyoto/Alloc/CMemory.hpp"
#include "Kyoto/Particles/CParticleGen.hpp"
class IWeaponRenderer {
public:
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:
~CDefaultWeaponRenderer() {}
void AddParticleGen(const CParticleGen& gen) { gen.Render(); }
};
#endif //__IWEAPONRENDERER_HPP__