Torque3D/Engine/source/navigation/navMeshTools/tileTool.h
marauder2k7 80473e10b5 added first tool
Added the tileTool with the ability to select tiles
Abstraction layer for navmesh tools created.
2025-07-23 15:08:29 +01:00

31 lines
643 B
C++

#ifndef _TILETOOL_H_
#define _TILETOOL_H_
#ifndef _NAVMESH_TOOL_H_
#include "navigation/navMeshTool.h"
#endif
class TileTool : public NavMeshTool
{
typedef NavMeshTool Parent;
S32 mCurTile;
S32 mSelTile;
public:
DECLARE_CONOBJECT(TileTool);
TileTool() { mCurTile = -1; mSelTile = -1; }
virtual ~TileTool() {}
void onActivated(const Gui3DMouseEvent& evt) override;
void onDeactivated() override;
void on3DMouseDown(const Gui3DMouseEvent& evt) override;
void on3DMouseMove(const Gui3DMouseEvent& evt) override;
void onRender3D() override;
void buildTile();
bool updateGuiInfo() override;
};
#endif