Class CCMHistoryTracker
- Assembly
- Assembly-CSharp.dll
Tracks all modifications made to the ActiveCharacterDraft in the Character Creator.
public class CCMHistoryTracker : CCMBase
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourCCMHistoryTracker
- Inherited Members
Properties
CanRedo
public bool CanRedo { get; }
Property Value
CanUndo
public bool CanUndo { get; }
Property Value
Current
public LayeredCharacterSnapshot Current { get; }
Property Value
CurrentIndex
public int CurrentIndex { get; }
Property Value
MaxSnapshots
public int MaxSnapshots { get; set; }
Property Value
PreserveFirstSnapshot
Prevent the first snapshot in the Snapshots list from being removed.
public bool PreserveFirstSnapshot { get; }
Property Value
Snapshots
public IReadOnlyList<LayeredCharacterSnapshot> Snapshots { get; }
Property Value
Methods
ApplySnapshot(LayeredCharacterSnapshot)
public void ApplySnapshot(LayeredCharacterSnapshot snapshot)
Parameters
snapshot
LayeredCharacterSnapshot
CharacterCreationMenuBeforeDisabled()
Called right before the Character Creation menu is disabled.
protected override void CharacterCreationMenuBeforeDisabled()
CharacterCreationMenuEnabled()
Called after the Character Creation Menu is enabled.
protected override void CharacterCreationMenuEnabled()
CreateNewSnapshot(string, bool)
Create a new snapshot of the LayeredCharacter currently being edited in the Character Creator.
public void CreateNewSnapshot(string noteOverride = "", bool dedupe = true)
Parameters
Redo()
Redo to the next snapshot, if available.
public void Redo()
ScheduleSnapshot()
Shcedule a snapshot to be created on the next frame.
public Task ScheduleSnapshot()
Returns
Undo()
Undo to the previous snapshot, if available.
public void Undo()
Events
OnBulkSnapshotsRemoved
Called when multiple snapshots are removed from the Snapshots list at once.
public event EventHandler<List<LayeredCharacterSnapshot>> OnBulkSnapshotsRemoved
Event Type
Remarks
Most often called when the BlazerTech.CharacterManagement.CharacterCreator.CCMHistoryTracker.snapshots list is truncated.
OnCursorChanged
Called when the selected LayeredCharacterSnapshot in the Snapshots list is changed.
public event EventHandler OnCursorChanged
Event Type
OnHistoryChanged
Called when a snapshot is added to or removed from the Snapshots list.
public event EventHandler OnHistoryChanged
Event Type
OnSnapshotAdded
Called when a new snapshot is added to the Snapshots list.
public event EventHandler<LayeredCharacterSnapshot> OnSnapshotAdded
Event Type
OnSnapshotRemoved
Called when a snapshot is removed from the Snapshots list.
public event EventHandler<LayeredCharacterSnapshot> OnSnapshotRemoved