mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 15:25:40 +00:00
32 lines
643 B
C
32 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
|