31 lines
774 B
C
31 lines
774 B
C
|
#ifndef CWAYPOINTEXTRA_H
|
||
|
#define CWAYPOINTEXTRA_H
|
||
|
|
||
|
#include "CScriptExtra.h"
|
||
|
#include <Common/CColor.h>
|
||
|
|
||
|
class CWaypointExtra : public CScriptExtra
|
||
|
{
|
||
|
// Draw waypoint paths formed by script connections
|
||
|
CColor mColor;
|
||
|
bool mLinksBuilt;
|
||
|
|
||
|
struct SWaypointLink
|
||
|
{
|
||
|
CScriptNode *pWaypoint;
|
||
|
CAABox LineAABB;
|
||
|
};
|
||
|
std::vector<SWaypointLink> 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
|