mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 19:56:07 +00:00
CSceneNode: Make use of override
Same behavior, stronger enforcement of API.
This commit is contained in:
parent
d3315bf84f
commit
7065005c30
@ -102,12 +102,12 @@ protected:
|
||||
|
||||
public:
|
||||
explicit CSceneNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = 0);
|
||||
virtual ~CSceneNode();
|
||||
~CSceneNode() override;
|
||||
virtual ENodeType NodeType() = 0;
|
||||
virtual void PostLoad() {}
|
||||
virtual void OnTransformed() {}
|
||||
virtual void AddToRenderer(CRenderer* /*pRenderer*/, const SViewInfo& /*rkViewInfo*/) {}
|
||||
virtual void DrawSelection();
|
||||
void AddToRenderer(CRenderer* /*pRenderer*/, const SViewInfo& /*rkViewInfo*/) override {}
|
||||
void DrawSelection() override;
|
||||
virtual void RayAABoxIntersectTest(CRayCollisionTester& rTester, const SViewInfo& rkViewInfo);
|
||||
virtual SRayIntersection RayNodeIntersectTest(const CRay& rkRay, uint32 AssetID, const SViewInfo& rkViewInfo) = 0;
|
||||
virtual bool AllowsTranslate() const { return true; }
|
||||
@ -179,7 +179,7 @@ public:
|
||||
void SetVisible(bool Visible) { mVisible = Visible; }
|
||||
|
||||
// Static
|
||||
inline static int NumNodes() { return smNumNodes; }
|
||||
static int NumNodes() { return smNumNodes; }
|
||||
static CColor skSelectionTint;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user