delegate void Expansions.Missions.Editor.MissionEditorHistory.ActionCallback |
( |
ConfigNode |
data, |
|
|
HistoryType |
type |
|
) |
| |
static void Expansions.Missions.Editor.MissionEditorHistory.Clear |
( |
| ) |
|
|
inlinestatic |
void Expansions.Missions.Editor.MissionEditorHistory.ClearRedoActions |
( |
| ) |
|
|
inlineprotected |
Deletes all the redo history
Creates a new undo action for the supplied target state
(When the action is performed it will call the supplied ActionCallback to handle the state restore)
NOTE: All actions pushed in the same frame are merged into a single action
- Parameters
-
target | |
callback | Callback delegate that gets triggered to undo this action |
static void Expansions.Missions.Editor.MissionEditorHistory.PushUndoAction |
( |
IMEHistoryTarget |
target, |
|
|
ActionCallback |
callback, |
|
|
bool |
destroyOnClear, |
|
|
params MonoBehaviour[] |
destroyTargets |
|
) |
| |
|
inlinestatic |
Creates a new undo action for the supplied target state
(When the action is performed it will call the supplied ActionCallback to handle the state restore)
This also clean ups the Redo history as every new action creates a new history path that overrides anything that could be restored before the action was performed. NOTE: All actions pushed in the same frame are merged into a single action
- Parameters
-
target | |
callback | Callback delegate that gets triggered to undo this action |
destroyOnClear | Indicates whatever the target object should be destroyed if the redo history gets overridden |
destroyTargets | Indicates the objects that should be clean as part of this, if this list is empty the target object will be destroyed instead |
static void Expansions.Missions.Editor.MissionEditorHistory.Redo |
( |
| ) |
|
|
inlinestatic |
Redoes the last action undone in the history
static void Expansions.Missions.Editor.MissionEditorHistory.Undo |
( |
| ) |
|
|
inlinestatic |
Undoes the last action stored in the history
ActionStack Expansions.Missions.Editor.MissionEditorHistory.RedoActions |
|
protected |
ActionStack Expansions.Missions.Editor.MissionEditorHistory.UndoActions |
|
protected |
bool Expansions.Missions.Editor.MissionEditorHistory.ActionInProgress |
|
getset |
bool Expansions.Missions.Editor.MissionEditorHistory.HasHistory |
|
staticget |
Are there undo actions on the stack
System.Guid Expansions.Missions.Editor.MissionEditorHistory.HistoryStateId |
|
staticgetset |
The current position in the list of actions.
This pushed onto the stack whenever an action is pushed and a new number generated. When applying undo/redos the id is updated with the one from the applied action Used by Builder to tell when the state of the Mission is the same as when it was saved
The documentation for this class was generated from the following file: