2022-07-26 04:36:32 +00:00
|
|
|
#ifndef __IWEAPONRENDERER_HPP__
|
|
|
|
#define __IWEAPONRENDERER_HPP__
|
|
|
|
|
2022-08-11 09:24:45 +00:00
|
|
|
#include "Kyoto/Alloc/CMemory.hpp"
|
|
|
|
#include "Kyoto/Particles/CParticleGen.hpp"
|
|
|
|
|
2022-07-26 04:36:32 +00:00
|
|
|
class IWeaponRenderer {
|
2022-07-28 13:19:26 +00:00
|
|
|
public:
|
2022-08-12 09:18:28 +00:00
|
|
|
virtual ~IWeaponRenderer()=0;
|
2022-07-26 04:36:32 +00:00
|
|
|
virtual void AddParticleGen(const CParticleGen& gen) = 0;
|
|
|
|
static void SetRenderer(IWeaponRenderer* renderer) { sWeaponRenderer = renderer; }
|
|
|
|
private:
|
|
|
|
static IWeaponRenderer* sWeaponRenderer;
|
|
|
|
};
|
|
|
|
|
2022-08-12 09:18:28 +00:00
|
|
|
inline IWeaponRenderer::~IWeaponRenderer() {}
|
|
|
|
|
2022-08-11 09:24:45 +00:00
|
|
|
class CDefaultWeaponRenderer : public IWeaponRenderer {
|
2022-07-26 04:36:32 +00:00
|
|
|
public:
|
2022-08-12 09:18:28 +00:00
|
|
|
~CDefaultWeaponRenderer() {}
|
2022-08-11 09:24:45 +00:00
|
|
|
void AddParticleGen(const CParticleGen& gen) { gen.Render(); }
|
2022-07-26 04:36:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__IWEAPONRENDERER_HPP__
|