using System; using PckStudio.Interfaces; namespace PckStudio.Core { public class DelegatedSaveContext : ISaveContext { private readonly Action _saveAction; public bool AutoSave { get; } public void Save(T value) => _saveAction(value); public DelegatedSaveContext(bool autoSave, Action saveAction) { AutoSave = autoSave; _saveAction = saveAction; } } }