Exemple #1
0
        /// <summary>
        /// Generates an unique save file name based on naming convention and existing saves
        /// </summary>
        /// <returns></returns>
        public string GenerateSaveFileName()
        {
            string result = namingConvention;

            switch (suffix)
            {
            case StratusSaveDataSuffixFormat.Incremental:
                RefreshSaveFiles();
                result += $"{saveCount}";
                break;

            case StratusSaveDataSuffixFormat.SystemTime:
                result += $"{StratusIO.GetTimestamp(timestampParameters)}";
                break;
            }
            return(result);
        }
Exemple #2
0
 /// <summary>
 /// Generates a save name for this save. By default it will be the time stamp
 /// </summary>
 /// <returns></returns>
 protected virtual string GenerateSaveName()
 {
     return(StratusIO.GetTimestamp());
 }