Пример #1
0
 // Token: 0x060009AA RID: 2474 RVA: 0x0005006A File Offset: 0x0004E46A
 protected static void triggerSaved()
 {
     if (DirtyManager.saved != null)
     {
         DirtyManager.saved();
     }
 }
Пример #2
0
 // Token: 0x060009A9 RID: 2473 RVA: 0x00050052 File Offset: 0x0004E452
 protected static void triggerSaveableChanged(IDirtyable item, bool isSaveable)
 {
     if (DirtyManager.saveableChanged != null)
     {
         DirtyManager.saveableChanged(item, isSaveable);
     }
 }
Пример #3
0
 // Token: 0x060009A8 RID: 2472 RVA: 0x0005003B File Offset: 0x0004E43B
 protected static void triggerMarkedClean(IDirtyable item)
 {
     if (DirtyManager.markedClean != null)
     {
         DirtyManager.markedClean(item);
     }
 }
Пример #4
0
 // Token: 0x060009A3 RID: 2467 RVA: 0x0004FF4F File Offset: 0x0004E34F
 public static void markClean(IDirtyable item)
 {
     if (DirtyManager.isSaving)
     {
         return;
     }
     DirtyManager.dirty.Remove(item);
     DirtyManager.triggerMarkedClean(item);
 }
Пример #5
0
 // Token: 0x060009A5 RID: 2469 RVA: 0x0004FF7E File Offset: 0x0004E37E
 public static void toggleSaveable(IDirtyable item)
 {
     if (!DirtyManager.notSaveable.Remove(item))
     {
         DirtyManager.notSaveable.Add(item);
         DirtyManager.triggerSaveableChanged(item, true);
     }
     else
     {
         DirtyManager.triggerSaveableChanged(item, false);
     }
 }
Пример #6
0
 // Token: 0x060009A6 RID: 2470 RVA: 0x0004FFB0 File Offset: 0x0004E3B0
 public static void save()
 {
     DirtyManager.isSaving = true;
     for (int i = DirtyManager.dirty.Count - 1; i >= 0; i--)
     {
         IDirtyable dirtyable = DirtyManager.dirty[i];
         if (!DirtyManager.notSaveable.Contains(dirtyable))
         {
             dirtyable.save();
             dirtyable.isDirty = false;
             DirtyManager.dirty.RemoveAt(i);
         }
     }
     DirtyManager.isSaving = false;
     DirtyManager.triggerSaved();
 }
Пример #7
0
 // Token: 0x060009A2 RID: 2466 RVA: 0x0004FF3C File Offset: 0x0004E33C
 public static void markDirty(IDirtyable item)
 {
     DirtyManager.dirty.Add(item);
     DirtyManager.triggerMarkedDirty(item);
 }