Show / Hide Table of Contents

Class UndoManager

Manager for handling undo and redo actions in mods. Can handle multiple undo queues.
Mods can make their own UndoActions using the provided interface or use the default ones Jötunn provides in UndoActions.
Undo queues get automatically reset on every login and logout.
Inheritance
object
UndoManager
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Managers
Assembly: Jotunn.dll
Syntax
public class UndoManager

Properties

Name Description
Instance The singleton instance of this manager.

Methods

Name Description
Add(string, IUndoAction) Add a new action to a queue.
If a queue with the provided name does not exist it is automatically created.
CreateQueue(string, int) Manually create a new queue by name and return it. If the queue already exists no new queue is created but the existing is returned.
GetQueue(string) Get a queue by name. Creates a new queue if it does not exist.
GetQueueNames() Get a list of all current undo queues.
Redo(string) Execute the redo action of the item after the queue's current position and increase the position pointer.
If a queue with the provided name does not exist it is automatically created.
Undo(string) Execute the undo action of the item at the queue's current position and decrease the position pointer.
If a queue with the provided name does not exist it is automatically created.

Extension Methods

PrefabExtension.FixReferences(object)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾