"Creates a Save Point and adds it to the Save History. The player can save the Save History to peristent storage and load it again later.")]
"Creates a Save Point and adds it to the Save History. The player can save the Save History to peristent storage and load it again later using the Save Menu.")]
publicclassSavePoint:Command
{
[Tooltip("A string key which uniquely identifies this save point. If you leave this empty then the parent Block's name will be used.")]
[SerializeField]protectedstringsavePointKey="";
/// <summary>
/// Supported modes for specifying a Save Point Key.
/// </summary>
publicenumKeyMode
{
/// <summary> Use the parent Block's name as the Save Point Key. N.B. If you change the Block name later it will break the save file!</summary>
UseBlockName,
/// <summary> Use a custom string for the key. This allows you to use multiple Save Points in the same block and save files will still work if the Block is renamed later. </summary>
Custom
}
[Tooltip("A short description of this save point. If you leave this empty then the current time and date will be used.")]