2022-07-26 04:36:32 +00:00
|
|
|
#ifndef __IWEAPONRENDERER_HPP__
|
|
|
|
#define __IWEAPONRENDERER_HPP__
|
|
|
|
|
|
|
|
class CParticleGen;
|
|
|
|
class IWeaponRenderer {
|
2022-07-28 13:19:26 +00:00
|
|
|
public:
|
2022-07-26 04:36:32 +00:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__IWEAPONRENDERER_HPP__
|