Example #1
0
 /// <summary>
 /// Creates an undoable action to add an item and sends it to the undo/redo manager.
 /// </summary>
 private void AddItem()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetAddItem(_item));
 }
 /// <summary>
 /// Creates an undoable action to collect the section and sends it to the undo/redo manager.
 /// </summary>
 /// <param name="force">
 /// A boolean representing whether the logic should be ignored.
 /// </param>
 private void CollectSection(bool force)
 {
     _undoRedoManager.NewAction(_undoableFactory.GetCollectSection(_section, force));
 }
 /// <summary>
 /// Creates an undoable action to add an item to the first item in the pair and sends it to the undo/redo
 /// manager.
 /// </summary>
 private void AddFirstItem()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetCycleItem(_items[0]));
 }
 /// <summary>
 /// Creates an undoable action to collect the prize section, ignoring logic, and sends it to the undo/redo
 /// manager.
 /// </summary>
 private void CollectSection()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetCollectSection(_section, true));
 }
 /// <summary>
 /// Creates an undoable action to toggle the prize section and sends it to the undo/redo manager.
 /// </summary>
 private void TogglePrize()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetTogglePrize(_section, true));
 }
Example #6
0
 /// <summary>
 /// Creates a new undoable action to check the dropdown to the undo/redo manager.
 /// </summary>
 private void CheckDropdown()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetCheckDropdown(_dropdown));
 }
 /// <summary>
 /// Creates an undoable action to add to the crystal requirement item and sends it to the undo/redo manager.
 /// </summary>
 private void AddItem()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetAddCrystalRequirement(_item));
 }
 /// <summary>
 /// Creates an undoable action to toggle the prize section and sends it to the undo/redo manager.
 /// </summary>
 /// <param name="force">
 /// A boolean representing whether the logic should be ignored.
 /// </param>
 private void TogglePrize(bool force = false)
 {
     _undoRedoManager.NewAction(_undoableFactory.GetTogglePrize(_section, force));
 }
 /// <summary>
 /// Creates an undoable action to remove the pinned location and sends it to undo/redo manager.
 /// </summary>
 private void UnpinLocation()
 {
     _undoRedoManager.NewAction(_undoableFactory.GetUnpinLocation(_location));
 }