prime/include/Weapons/IWeaponRenderer.hpp

24 lines
591 B
C++
Raw Normal View History

#ifndef __IWEAPONRENDERER_HPP__
#define __IWEAPONRENDERER_HPP__
class CParticleGen;
class IWeaponRenderer {
virtual ~IWeaponRenderer() {}
virtual void AddParticleGen(const CParticleGen& gen) = 0;
static void SetRenderer(IWeaponRenderer* renderer) { sWeaponRenderer = renderer; }
private:
static IWeaponRenderer* sWeaponRenderer;
};
class CDefaultRenderer : public IWeaponRenderer {
public:
~CDefaultRenderer();
void AddParticleGen(const CParticleGen& gen);
};
static CDefaultRenderer sDefaultRenderer = CDefaultRenderer();;
#endif //__IWEAPONRENDERER_HPP__