#ifndef CWAYPOINTEXTRA_H #define CWAYPOINTEXTRA_H #include "CScriptExtra.h" #include class CWaypointExtra : public CScriptExtra { // Draw waypoint paths formed by script connections CColor mColor; bool mLinksBuilt; struct SWaypointLink { CScriptNode *pWaypoint; CAABox LineAABB; }; std::vector mLinks; public: explicit CWaypointExtra(CScriptObject *pInstance, CSceneManager *pScene, CSceneNode *pParent = 0); void BuildLinks(); bool IsPathLink(const SLink& rkLink); void LinksModified(); void AddToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo); void DrawAsset(ERenderOptions Options, u32 AssetID, const SViewInfo& ViewInfo); }; #endif // CWAYPOINTEXTRA_H