Added CRadiusSphereExtra for RadialDamage and Repulsor objects

This commit is contained in:
parax0
2015-12-16 16:10:36 -07:00
parent 4eaf4d9440
commit 2a38fb5b09
11 changed files with 122 additions and 7 deletions

View File

@@ -0,0 +1,20 @@
#ifndef CRADIUSSPHEREEXTRA_H
#define CRADIUSSPHEREEXTRA_H
#include "CScriptExtra.h"
class CRadiusSphereExtra : public CScriptExtra
{
// Sphere visualization for objects that have a float radius property.
u32 mObjectType;
CFloatProperty *mpRadius;
public:
explicit CRadiusSphereExtra(CScriptObject *pInstance, CSceneManager *pScene, CSceneNode *pParent = 0);
void AddToRenderer(CRenderer *pRenderer, const SViewInfo& rkViewInfo);
void Draw(ERenderOptions Options, int ComponentIndex, const SViewInfo& rkViewInfo);
CColor Color() const;
CAABox Bounds() const;
};
#endif // CRADIUSSPHEREEXTRA_H