30 lines
812 B
C#
30 lines
812 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Gameplay.Level.Operation
|
|
{
|
|
public class UndoOperation
|
|
{
|
|
public Stack<UndoState> UndoStack = new Stack<UndoState>(16);
|
|
}
|
|
|
|
public class UndoState
|
|
{
|
|
public Kong PreModifiedKong;
|
|
public Kong LastModifiedKong;
|
|
|
|
public Dictionary<Plank, KeyValuePair<Vector3, Quaternion>> AffectPlanks;
|
|
public List<Plank> RemoveH2DjPlanks;
|
|
public List<Plank> AddH2DjPlanks;
|
|
public List<Plank> ReplacePlanks;
|
|
|
|
|
|
public UndoState()
|
|
{
|
|
AffectPlanks = new Dictionary<Plank, KeyValuePair<Vector3, Quaternion>>();
|
|
RemoveH2DjPlanks = new List<Plank>();
|
|
AddH2DjPlanks = new List<Plank>();
|
|
ReplacePlanks = new List<Plank>();
|
|
}
|
|
}
|
|
} |