Kerbal Space Program
1.12.4
|
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< HistoryAction > | Peek () |
Gets the top item of the stack More... | |
List< HistoryAction > | Pop () |
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... | |
Custom implementation of a stack based on a list
|
inline |
Constructor
stackLimit | Stack limit default value -1 means no limit |
|
inline |
Clears the stack
|
inline |
Gets the top item of the stack
|
inline |
Gets the top item and remove it from the stack
|
inline |
Push a new item into the stack
item | New action |
|
get |
Stack count