Skip to main content

CustomizationHistoryAction

A class in Root.Township, Alta.Customization.

One undo/redo step in the character customiser: the look before and after a change. Pushed by CustomizationWrapper.

Constructors​

MemberWhat it is
CustomizationHistoryAction(CustomizationWrapper target, CosmeticPresetData oldState, CosmeticPresetData newState)Creates a CustomizationHistoryAction from target, oldState and newState.

Fields​

3 private and internal fields
MemberWhat it is
private CosmeticPresetData newStateCosmetic preset data after the change.
private CosmeticPresetData oldStateCosmetic preset data before the change.
private CustomizationWrapper targetThe customisation wrapper the states are loaded into.

Methods​

3 private and internal methods
MemberWhat it is
private void IHistoryAction.Redo()Loads the after state back onto the wrapper.
private void IHistoryAction.Release()Clears the stored before state when the step is dropped from history.
private void IHistoryAction.Undo()Loads the before state back onto the wrapper.

Used in​

Members of other types that take, return or hold a CustomizationHistoryAction: