Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Commands.vxCommandManager Class Reference

Manages Do-Undo control in a sandbox enviroment. More...

Public Member Functions

 vxCommandManager ()
 Initializes a new instance of the T:VerticesEngine.Commands.vxCommandManager class.
 
void Add (vxCommand command)
 Add the specified command and clears all commands after the current Command Index.
 
void ReDo ()
 Calls the Redo for the current command.
 
void Undo ()
 Calls the Undo for the current command.
 

Public Attributes

bool IsActive = true
 
int CurrentCmdIndex = -1
 The index of the current cmd.
 
bool ShowDebugOutput = false
 Should the Command List show the current list.
 

Properties

int Count [get]
 Gets the number of Commands currently in the list.
 
bool CanRedo [get]
 Gets a value indicating whether this T:VerticesEngine.Base.vxCommandManager can do.
 
bool CanUndo [get]
 Gets a value indicating whether this T:VerticesEngine.Base.vxCommandManager can undo.
 

Events

EventHandler< EventArgs > OnChange
 

Detailed Description

Manages Do-Undo control in a sandbox enviroment.

Constructor & Destructor Documentation

◆ vxCommandManager()

VerticesEngine.Commands.vxCommandManager.vxCommandManager ( )

Initializes a new instance of the T:VerticesEngine.Commands.vxCommandManager class.

Parameters
EngineEngine.

Member Function Documentation

◆ Add()

void VerticesEngine.Commands.vxCommandManager.Add ( vxCommand command)

Add the specified command and clears all commands after the current Command Index.

Returns
The add.
Parameters
commandCommand.

Property Documentation

◆ CanRedo

bool VerticesEngine.Commands.vxCommandManager.CanRedo
get

Gets a value indicating whether this T:VerticesEngine.Base.vxCommandManager can do.

true if can do; otherwise, false.

◆ CanUndo

bool VerticesEngine.Commands.vxCommandManager.CanUndo
get

Gets a value indicating whether this T:VerticesEngine.Base.vxCommandManager can undo.

true if can undo; otherwise, false.

◆ Count

int VerticesEngine.Commands.vxCommandManager.Count
get

Gets the number of Commands currently in the list.

The count.


The documentation for this class was generated from the following file: