mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Engine directory for ticket #1
This commit is contained in:
parent
352279af7a
commit
7dbfe6994d
3795 changed files with 1363358 additions and 0 deletions
1307
Engine/source/environment/editors/guiMeshRoadEditorCtrl.cpp
Normal file
1307
Engine/source/environment/editors/guiMeshRoadEditorCtrl.cpp
Normal file
File diff suppressed because it is too large
Load diff
178
Engine/source/environment/editors/guiMeshRoadEditorCtrl.h
Normal file
178
Engine/source/environment/editors/guiMeshRoadEditorCtrl.h
Normal file
|
|
@ -0,0 +1,178 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (c) 2012 GarageGames, LLC
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to
|
||||
// deal in the Software without restriction, including without limitation the
|
||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
// sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _GUIMESHROADEDITORCTRL_H_
|
||||
#define _GUIMESHROADEDITORCTRL_H_
|
||||
|
||||
#ifndef _EDITTSCTRL_H_
|
||||
#include "gui/worldEditor/editTSCtrl.h"
|
||||
#endif
|
||||
#ifndef _UNDO_H_
|
||||
#include "util/undo.h"
|
||||
#endif
|
||||
#ifndef _GIZMO_H_
|
||||
#include "gui/worldEditor/gizmo.h"
|
||||
#endif
|
||||
#ifndef _MESHROAD_H_
|
||||
#include "environment/meshRoad.h"
|
||||
#endif
|
||||
|
||||
class GameBase;
|
||||
|
||||
class GuiMeshRoadEditorCtrl : public EditTSCtrl
|
||||
{
|
||||
typedef EditTSCtrl Parent;
|
||||
|
||||
public:
|
||||
|
||||
friend class GuiMeshRoadEditorUndoAction;
|
||||
|
||||
String mSelectMeshRoadMode;
|
||||
String mAddMeshRoadMode;
|
||||
String mAddNodeMode;
|
||||
String mInsertPointMode;
|
||||
String mRemovePointMode;
|
||||
String mMovePointMode;
|
||||
String mScalePointMode;
|
||||
String mRotatePointMode;
|
||||
|
||||
GuiMeshRoadEditorCtrl();
|
||||
~GuiMeshRoadEditorCtrl();
|
||||
|
||||
DECLARE_CONOBJECT(GuiMeshRoadEditorCtrl);
|
||||
|
||||
// SimObject
|
||||
bool onAdd();
|
||||
static void initPersistFields();
|
||||
|
||||
// GuiControl
|
||||
virtual void onSleep();
|
||||
|
||||
// EditTSCtrl
|
||||
bool onKeyDown(const GuiEvent& event);
|
||||
void get3DCursor( GuiCursor *&cursor, bool &visible, const Gui3DMouseEvent &event_ );
|
||||
void on3DMouseDown(const Gui3DMouseEvent & event);
|
||||
void on3DMouseUp(const Gui3DMouseEvent & event);
|
||||
void on3DMouseMove(const Gui3DMouseEvent & event);
|
||||
void on3DMouseDragged(const Gui3DMouseEvent & event);
|
||||
void on3DMouseEnter(const Gui3DMouseEvent & event);
|
||||
void on3DMouseLeave(const Gui3DMouseEvent & event);
|
||||
void on3DRightMouseDown(const Gui3DMouseEvent & event);
|
||||
void on3DRightMouseUp(const Gui3DMouseEvent & event);
|
||||
void updateGuiInfo();
|
||||
void renderScene(const RectI & updateRect);
|
||||
|
||||
// GuiRiverEditorCtrl
|
||||
bool getStaticPos( const Gui3DMouseEvent & event, Point3F &tpos );
|
||||
void deleteSelectedNode();
|
||||
void deleteSelectedRoad( bool undoAble = true );
|
||||
|
||||
void setMode( String mode, bool sourceShortcut );
|
||||
String getMode() { return mMode; }
|
||||
|
||||
void setSelectedRoad( MeshRoad *road );
|
||||
MeshRoad* getSelectedRoad() { return mSelRoad; };
|
||||
void setSelectedNode( S32 node );
|
||||
|
||||
F32 getNodeWidth();
|
||||
void setNodeWidth( F32 width );
|
||||
|
||||
F32 getNodeDepth();
|
||||
void setNodeDepth( F32 depth );
|
||||
|
||||
Point3F getNodePosition();
|
||||
void setNodePosition( Point3F pos );
|
||||
|
||||
VectorF getNodeNormal();
|
||||
void setNodeNormal( const VectorF &normal );
|
||||
|
||||
void matchTerrainToRoad();
|
||||
|
||||
protected:
|
||||
|
||||
enum {
|
||||
Top = 0,
|
||||
Bottom = 1,
|
||||
Side = 2,
|
||||
SurfaceCount = 3
|
||||
};
|
||||
|
||||
S32 _getNodeAtScreenPos( const MeshRoad *pRoad, const Point2I &posi );
|
||||
void _drawSpline( MeshRoad *road, const ColorI &color );
|
||||
void _drawControlNodes( MeshRoad *road, const ColorI &color );
|
||||
|
||||
void submitUndo( const UTF8 *name = "Action" );
|
||||
|
||||
GFXStateBlockRef mZDisableSB;
|
||||
GFXStateBlockRef mZEnableSB;
|
||||
|
||||
bool mSavedDrag;
|
||||
bool mIsDirty;
|
||||
|
||||
SimSet *mRoadSet;
|
||||
S32 mSelNode;
|
||||
S32 mHoverNode;
|
||||
U32 mAddNodeIdx;
|
||||
SimObjectPtr<MeshRoad> mSelRoad;
|
||||
SimObjectPtr<MeshRoad> mHoverRoad;
|
||||
|
||||
String mMode;
|
||||
|
||||
F32 mDefaultWidth;
|
||||
F32 mDefaultDepth;
|
||||
VectorF mDefaultNormal;
|
||||
|
||||
Point2I mNodeHalfSize;
|
||||
|
||||
ColorI mHoverSplineColor;
|
||||
ColorI mSelectedSplineColor;
|
||||
ColorI mHoverNodeColor;
|
||||
|
||||
bool mHasCopied;
|
||||
public:
|
||||
|
||||
StringTableEntry mMaterialName[SurfaceCount];
|
||||
};
|
||||
|
||||
class GuiMeshRoadEditorUndoAction : public UndoAction
|
||||
{
|
||||
public:
|
||||
|
||||
GuiMeshRoadEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
|
||||
{
|
||||
}
|
||||
|
||||
GuiMeshRoadEditorCtrl *mEditor;
|
||||
|
||||
Vector<MeshRoadNode> mNodes;
|
||||
|
||||
SimObjectId mObjId;
|
||||
F32 mMetersPerSegment;
|
||||
|
||||
virtual void undo();
|
||||
virtual void redo() { undo(); }
|
||||
};
|
||||
|
||||
#endif // _GUIMESHROADEDITORCTRL_H_
|
||||
|
||||
|
||||
|
||||
1506
Engine/source/environment/editors/guiRiverEditorCtrl.cpp
Normal file
1506
Engine/source/environment/editors/guiRiverEditorCtrl.cpp
Normal file
File diff suppressed because it is too large
Load diff
200
Engine/source/environment/editors/guiRiverEditorCtrl.h
Normal file
200
Engine/source/environment/editors/guiRiverEditorCtrl.h
Normal file
|
|
@ -0,0 +1,200 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (c) 2012 GarageGames, LLC
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to
|
||||
// deal in the Software without restriction, including without limitation the
|
||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
// sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _GUIRIVEREDITORCTRL_H_
|
||||
#define _GUIRIVEREDITORCTRL_H_
|
||||
|
||||
#ifndef _EDITTSCTRL_H_
|
||||
#include "gui/worldEditor/editTSCtrl.h"
|
||||
#endif
|
||||
#ifndef _UNDO_H_
|
||||
#include "util/undo.h"
|
||||
#endif
|
||||
#ifndef _RIVER_H_
|
||||
#include "environment/river.h"
|
||||
#endif
|
||||
#ifndef _GIZMO_H_
|
||||
#include "gui/worldEditor/gizmo.h"
|
||||
#endif
|
||||
|
||||
struct ObjectRenderInst;
|
||||
class SceneManager;
|
||||
class SceneRenderState;
|
||||
class BaseMatInstance;
|
||||
|
||||
|
||||
class GuiRiverEditorCtrl : public EditTSCtrl
|
||||
{
|
||||
typedef EditTSCtrl Parent;
|
||||
|
||||
public:
|
||||
|
||||
friend class GuiRiverEditorUndoAction;
|
||||
|
||||
//static StringTableEntry smNormalMode;
|
||||
//static StringTableEntry smAddNodeMode;
|
||||
|
||||
String mSelectRiverMode;
|
||||
String mAddRiverMode;
|
||||
String mAddNodeMode;
|
||||
String mInsertPointMode;
|
||||
String mRemovePointMode;
|
||||
String mMovePointMode;
|
||||
String mScalePointMode;
|
||||
String mRotatePointMode;
|
||||
|
||||
GuiRiverEditorCtrl();
|
||||
~GuiRiverEditorCtrl();
|
||||
|
||||
DECLARE_CONOBJECT(GuiRiverEditorCtrl);
|
||||
|
||||
// SimObject
|
||||
bool onAdd();
|
||||
static void initPersistFields();
|
||||
|
||||
// GuiControl
|
||||
virtual void onSleep();
|
||||
virtual void onRender(Point2I offset, const RectI &updateRect);
|
||||
|
||||
// EditTSCtrl
|
||||
bool onKeyDown(const GuiEvent& event);
|
||||
void get3DCursor( GuiCursor *&cursor, bool &visible, const Gui3DMouseEvent &event_ );
|
||||
void on3DMouseDown(const Gui3DMouseEvent & event);
|
||||
void on3DMouseUp(const Gui3DMouseEvent & event);
|
||||
void on3DMouseMove(const Gui3DMouseEvent & event);
|
||||
void on3DMouseDragged(const Gui3DMouseEvent & event);
|
||||
void on3DMouseEnter(const Gui3DMouseEvent & event);
|
||||
void on3DMouseLeave(const Gui3DMouseEvent & event);
|
||||
void on3DRightMouseDown(const Gui3DMouseEvent & event);
|
||||
void on3DRightMouseUp(const Gui3DMouseEvent & event);
|
||||
void updateGuiInfo();
|
||||
void renderScene(const RectI & updateRect);
|
||||
|
||||
// GuiRiverEditorCtrl
|
||||
bool getStaticPos( const Gui3DMouseEvent & event, Point3F &tpos );
|
||||
void deleteSelectedNode();
|
||||
void deleteSelectedRiver( bool undoAble = true );
|
||||
|
||||
void setMode( String mode, bool sourceShortcut );
|
||||
String getMode() { return mMode; }
|
||||
|
||||
//void setGizmoMode( Gizmo::Mode mode ) { mGizmo->setMode( mode ); }
|
||||
|
||||
void setSelectedRiver( River *river );
|
||||
River* getSelectedRiver() { return mSelRiver; };
|
||||
void setSelectedNode( S32 node );
|
||||
|
||||
F32 getNodeWidth();
|
||||
void setNodeWidth( F32 width );
|
||||
|
||||
F32 getNodeDepth();
|
||||
void setNodeDepth( F32 depth );
|
||||
|
||||
Point3F getNodePosition();
|
||||
void setNodePosition( Point3F pos );
|
||||
|
||||
VectorF getNodeNormal();
|
||||
void setNodeNormal( const VectorF &normal );
|
||||
|
||||
protected:
|
||||
|
||||
void _renderSelectedRiver( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *matInst );
|
||||
void _prepRenderImage( SceneManager* sceneGraph, const SceneRenderState* sceneState );
|
||||
void _drawRiverSpline( River *river, const ColorI &color );
|
||||
void _drawRiverControlNodes( River *river, const ColorI &color );
|
||||
|
||||
void submitUndo( const UTF8 *name = "Action" );
|
||||
|
||||
GFXStateBlockRef mZDisableSB;
|
||||
GFXStateBlockRef mZEnableSB;
|
||||
|
||||
bool mSavedDrag;
|
||||
bool mIsDirty;
|
||||
|
||||
SimSet *mRiverSet;
|
||||
S32 mSelNode;
|
||||
S32 mHoverNode;
|
||||
U32 mAddNodeIdx;
|
||||
SimObjectPtr<River> mSelRiver;
|
||||
SimObjectPtr<River> mHoverRiver;
|
||||
|
||||
String mMode;
|
||||
|
||||
F32 mDefaultWidth;
|
||||
F32 mDefaultDepth;
|
||||
VectorF mDefaultNormal;
|
||||
S32 mInsertIdx;
|
||||
|
||||
F32 mStartHeight;
|
||||
F32 mStartWidth;
|
||||
S32 mStartX;
|
||||
Point3F mStartWorld;
|
||||
|
||||
Point2I mNodeHalfSize;
|
||||
|
||||
//Gizmo mGizmo;
|
||||
|
||||
Gui3DMouseEvent mLastMouseEvent;
|
||||
|
||||
F32 mNodeSphereRadius;
|
||||
ColorI mNodeSphereFillColor;
|
||||
ColorI mNodeSphereLineColor;
|
||||
|
||||
ColorI mHoverSplineColor;
|
||||
ColorI mSelectedSplineColor;
|
||||
ColorI mHoverNodeColor;
|
||||
|
||||
#define InvalidMousePoint Point2I(-100,-100)
|
||||
Point2I mStartDragMousePoint;
|
||||
|
||||
Point3F mStartDragNodePos;
|
||||
|
||||
//GuiCursor *mMoveNodeCursor;
|
||||
//GuiCursor *mAddNodeCursor;
|
||||
//GuiCursor *mInsertNodeCursor;
|
||||
//GuiCursor *mResizeNodeCursor;
|
||||
};
|
||||
|
||||
class GuiRiverEditorUndoAction : public UndoAction
|
||||
{
|
||||
public:
|
||||
|
||||
GuiRiverEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
|
||||
{
|
||||
}
|
||||
|
||||
GuiRiverEditorCtrl *mRiverEditor;
|
||||
|
||||
Vector<RiverNode> mNodes;
|
||||
|
||||
SimObjectId mObjId;
|
||||
F32 mMetersPerSegment;
|
||||
U32 mSegmentsPerBatch;
|
||||
|
||||
virtual void undo();
|
||||
virtual void redo() { undo(); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
1120
Engine/source/environment/editors/guiRoadEditorCtrl.cpp
Normal file
1120
Engine/source/environment/editors/guiRoadEditorCtrl.cpp
Normal file
File diff suppressed because it is too large
Load diff
168
Engine/source/environment/editors/guiRoadEditorCtrl.h
Normal file
168
Engine/source/environment/editors/guiRoadEditorCtrl.h
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (c) 2012 GarageGames, LLC
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to
|
||||
// deal in the Software without restriction, including without limitation the
|
||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
// sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _GUIROADEDITORCTRL_H_
|
||||
#define _GUIROADEDITORCTRL_H_
|
||||
|
||||
#ifndef _EDITTSCTRL_H_
|
||||
#include "gui/worldEditor/editTSCtrl.h"
|
||||
#endif
|
||||
#ifndef _UNDO_H_
|
||||
#include "util/undo.h"
|
||||
#endif
|
||||
#ifndef _DECALROAD_H_
|
||||
#include "environment/decalRoad.h"
|
||||
#endif
|
||||
|
||||
class GameBase;
|
||||
class DecalRoad;
|
||||
|
||||
|
||||
class GuiRoadEditorCtrl : public EditTSCtrl
|
||||
{
|
||||
typedef EditTSCtrl Parent;
|
||||
|
||||
public:
|
||||
|
||||
friend class GuiRoadEditorUndoAction;
|
||||
|
||||
String mSelectRoadMode;
|
||||
String mAddRoadMode;
|
||||
String mAddNodeMode;
|
||||
String mInsertPointMode;
|
||||
String mRemovePointMode;
|
||||
String mMovePointMode;
|
||||
String mScalePointMode;
|
||||
|
||||
GuiRoadEditorCtrl();
|
||||
~GuiRoadEditorCtrl();
|
||||
|
||||
DECLARE_CONOBJECT(GuiRoadEditorCtrl);
|
||||
|
||||
// SimObject
|
||||
bool onAdd();
|
||||
static void initPersistFields();
|
||||
|
||||
// GuiControl
|
||||
virtual void onSleep();
|
||||
virtual void onRender(Point2I offset, const RectI &updateRect);
|
||||
|
||||
// EditTSCtrl
|
||||
bool onKeyDown(const GuiEvent& event);
|
||||
void get3DCursor( GuiCursor *&cursor, bool &visible, const Gui3DMouseEvent &event_ );
|
||||
void on3DMouseDown(const Gui3DMouseEvent & event);
|
||||
void on3DMouseUp(const Gui3DMouseEvent & event);
|
||||
void on3DMouseMove(const Gui3DMouseEvent & event);
|
||||
void on3DMouseDragged(const Gui3DMouseEvent & event);
|
||||
void on3DMouseEnter(const Gui3DMouseEvent & event);
|
||||
void on3DMouseLeave(const Gui3DMouseEvent & event);
|
||||
void on3DRightMouseDown(const Gui3DMouseEvent & event);
|
||||
void on3DRightMouseUp(const Gui3DMouseEvent & event);
|
||||
void updateGuiInfo();
|
||||
void renderScene(const RectI & updateRect);
|
||||
void renderGui(Point2I offset, const RectI &updateRect);
|
||||
|
||||
bool getTerrainPos( const Gui3DMouseEvent & event, Point3F &tpos );
|
||||
void deleteSelectedNode();
|
||||
void deleteSelectedRoad( bool undoAble = true );
|
||||
|
||||
void setMode( String mode, bool sourceShortcut );
|
||||
String getMode() { return mMode; }
|
||||
|
||||
void setSelectedRoad( DecalRoad *road );
|
||||
DecalRoad* getSelectedRoad() { return mSelRoad; };
|
||||
void setSelectedNode( S32 node );
|
||||
S32 getSelectedNode() { return mSelNode; };
|
||||
|
||||
F32 getNodeWidth();
|
||||
void setNodeWidth( F32 width );
|
||||
|
||||
Point3F getNodePosition();
|
||||
void setNodePosition( Point3F pos );
|
||||
|
||||
void setTextureFile( StringTableEntry file );
|
||||
|
||||
public:
|
||||
|
||||
StringTableEntry mMaterialName;
|
||||
protected:
|
||||
|
||||
void _drawRoadSpline( DecalRoad *road, const ColorI &color );
|
||||
void _drawRoadControlNodes( DecalRoad *road, const ColorI &color );
|
||||
|
||||
void submitUndo( const UTF8 *name );
|
||||
|
||||
bool mSavedDrag;
|
||||
bool mIsDirty;
|
||||
|
||||
SimSet *mRoadSet;
|
||||
S32 mSelNode;
|
||||
S32 mHoverNode;
|
||||
U32 mAddNodeIdx;
|
||||
SimObjectPtr<DecalRoad> mSelRoad;
|
||||
SimObjectPtr<DecalRoad> mHoverRoad;
|
||||
|
||||
ColorI mHoverSplineColor;
|
||||
ColorI mSelectedSplineColor;
|
||||
ColorI mHoverNodeColor;
|
||||
|
||||
String mMode;
|
||||
|
||||
F32 mDefaultWidth;
|
||||
S32 mInsertIdx;
|
||||
|
||||
F32 mStartWidth;
|
||||
S32 mStartX;
|
||||
Point3F mStartWorld;
|
||||
|
||||
Point2I mNodeHalfSize;
|
||||
|
||||
// StateBlock for rendering road splines.
|
||||
GFXStateBlockRef mZDisableSB;
|
||||
};
|
||||
|
||||
class GuiRoadEditorUndoAction : public UndoAction
|
||||
{
|
||||
public:
|
||||
|
||||
GuiRoadEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
|
||||
{
|
||||
}
|
||||
|
||||
GuiRoadEditorCtrl *mRoadEditor;
|
||||
|
||||
Vector<RoadNode> mNodes;
|
||||
|
||||
SimObjectId mObjId;
|
||||
String mMaterialName;
|
||||
F32 mBreakAngle;
|
||||
U32 mSegmentsPerBatch;
|
||||
F32 mTextureLength;
|
||||
|
||||
virtual void undo();
|
||||
virtual void redo() { undo(); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue