Class CharacterDraft
- Namespace
- BlazerTech.CharacterManagement.Characters
- Assembly
- Assembly-CSharp.dll
Wrapper class used when editting characters in the Character Creation Menu
public abstract class CharacterDraft : IDisposable
- Inheritance
-
CharacterDraft
- Implements
- Derived
Constructors
CharacterDraft(LayeredCharacter)
public CharacterDraft(LayeredCharacter character)
Parameters
characterLayeredCharacter
Fields
BaseSnapshot
A snapshot of the Character captured when the CharacterDraft is first created.
public readonly LayeredCharacterSnapshot BaseSnapshot
Field Value
Character
public readonly LayeredCharacter Character
Field Value
Properties
LastSaveSnapshot
A snapshot of the Character captured every time the SaveCharacter() is called.
public LayeredCharacterSnapshot LastSaveSnapshot { get; protected set; }
Property Value
Methods
Dispose()
public void Dispose()
ResetCharacter()
Resets the Character to the state it was in when CharacterDraft was first created.
public void ResetCharacter()
SaveCharacter()
public abstract LayeredCharacter SaveCharacter()
Returns
Events
OnCharacterLayerOptionUpdated
Called when a layer of the character is updated.
public event EventHandler<CharacterLayer.LayerOptionUpdatedEventArgs> OnCharacterLayerOptionUpdated
Event Type
OnCharacterUpdated
Called when a layer of the character or the characters display name is updated.
public event EventHandler OnCharacterUpdated