Exemplo n.º 1
0
            internal ChangeState(ChangeManager manager)
            {
                ActiveManager = manager;
                ActiveManager.currentRecord = null;
                ActiveManager.StateDirty    = false;

                changeRecord = new List <ChangeRecord>();
            }
Exemplo n.º 2
0
        protected void InitializeRecord(ChangeType type, ChangeManager manager)
        {
            StoreType     = type;
            ActiveManager = manager;

            ActionList = new List <Action>();

            ActionTypes       = new List <ActionType>();
            CustomActionTypes = new List <ActionType>();
            UnusedActionTypes = new List <ActionType>();
            ActionBuffer      = new List <ActionType>();

            undoActions = new Stack <ActionState>();
            redoActions = new Stack <ActionState>();

            EnableBuffer = false;
        }
Exemplo n.º 3
0
        internal static ChangeRecord CreateRecord(ChangeType StoreType, ChangeManager manager)
        {
            switch (StoreType)
            {
            case ChangeType.HitObject:
                return(new HitObjectRecord(manager));

            case ChangeType.Timing:
                return(new TimingRecord(manager));

            case ChangeType.Event:
                return(new EventRecord(manager));

            case ChangeType.Bookmark:
                return(new BookmarkRecord(manager));

            case ChangeType.PreviewPoint:
                return(new PreviewPointRecord(manager));

            default:
                return(null);
            }
        }
Exemplo n.º 4
0
 public TimingRecord(ChangeManager manager)
 {
     InitializeRecord(ChangeType.Timing, manager);
 }
Exemplo n.º 5
0
 public EventRecord(ChangeManager manager)
 {
     InitializeRecord(ChangeType.Event, manager);
 }
Exemplo n.º 6
0
 public HitObjectRecord(ChangeManager manager)
 {
     InitializeRecord(ChangeType.HitObject, manager);
 }
Exemplo n.º 7
0
 public BookmarkRecord(ChangeManager manager)
 {
     InitializeRecord(ChangeType.Bookmark, manager);
 }
Exemplo n.º 8
0
 public PreviewPointRecord(ChangeManager manager)
 {
     InitializeRecord(ChangeType.PreviewPoint, manager);
 }