Пример #1
0
        internal static SettingCollection GetSettings(this GameSave gameSave)
        {
            var json = gameSave.GetSaveString(SaveFileSettingKey);

            return(string.IsNullOrEmpty(json)
                                ? new SettingCollection()
                                : GameSettingsLoader.FromJson(json));
        }