mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-17 13:43:48 +00:00
added first tool
Added the tileTool with the ability to select tiles Abstraction layer for navmesh tools created.
This commit is contained in:
parent
ab83ecb591
commit
80473e10b5
12 changed files with 363 additions and 66 deletions
39
Engine/source/navigation/navMeshTool.cpp
Normal file
39
Engine/source/navigation/navMeshTool.cpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
#include "platform/platform.h"
|
||||
#include "navigation/navMeshTool.h"
|
||||
|
||||
#include "util/undo.h"
|
||||
#include "math/mMath.h"
|
||||
#include "math/mathUtils.h"
|
||||
|
||||
IMPLEMENT_CONOBJECT(NavMeshTool);
|
||||
|
||||
ConsoleDocClass(NavMeshTool,
|
||||
"@brief Base class for NavMesh Editor specific tools\n\n"
|
||||
"Editor use only.\n\n"
|
||||
"@internal"
|
||||
);
|
||||
|
||||
void NavMeshTool::_submitUndo(UndoAction* action)
|
||||
{
|
||||
AssertFatal(action, "NavMeshTool::_submitUndo() - No undo action!");
|
||||
|
||||
// Grab the mission editor undo manager.
|
||||
UndoManager* undoMan = NULL;
|
||||
if (!Sim::findObject("EUndoManager", undoMan))
|
||||
{
|
||||
Con::errorf("NavMeshTool::_submitUndo() - EUndoManager not found!");
|
||||
return;
|
||||
}
|
||||
|
||||
undoMan->addAction(action);
|
||||
}
|
||||
|
||||
NavMeshTool::NavMeshTool()
|
||||
: mNavMesh(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
NavMeshTool::~NavMeshTool()
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue