コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }