Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
Expansions.Missions.Editor.MissionEditorHistory.ActionStack Class Reference

Custom implementation of a stack based on a list More...

Public Member Functions

 ActionStack (int stackLimit=-1)
 Constructor More...
 
void Clear ()
 Clears the stack More...
 
List< HistoryActionPeek ()
 Gets the top item of the stack More...
 
List< HistoryActionPop ()
 Gets the top item and remove it from the stack More...
 
void Push (HistoryAction item)
 Push a new item into the stack More...
 

Properties

int Count [get]
 Stack count More...
 

Detailed Description

Custom implementation of a stack based on a list

Constructor & Destructor Documentation

Expansions.Missions.Editor.MissionEditorHistory.ActionStack.ActionStack ( int  stackLimit = -1)
inline

Constructor

Parameters
stackLimitStack limit default value -1 means no limit

Member Function Documentation

void Expansions.Missions.Editor.MissionEditorHistory.ActionStack.Clear ( )
inline

Clears the stack

List<HistoryAction> Expansions.Missions.Editor.MissionEditorHistory.ActionStack.Peek ( )
inline

Gets the top item of the stack

Returns
List<HistoryAction> Expansions.Missions.Editor.MissionEditorHistory.ActionStack.Pop ( )
inline

Gets the top item and remove it from the stack

Returns
void Expansions.Missions.Editor.MissionEditorHistory.ActionStack.Push ( HistoryAction  item)
inline

Push a new item into the stack

Parameters
itemNew action

Property Documentation

int Expansions.Missions.Editor.MissionEditorHistory.ActionStack.Count
get

Stack count


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