using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.GuardianSaveSystem
{
    /// <summary>
    /// An object that can be saved and load during the game runtime, uses 
    /// ObjectDataMaps to map keys and values together so that data can
    /// be easily saved and loaded. 
    /// </summary>
    public interface Savable
    {
        /// <summary>
        /// Saves the object data to a given object data map. Also returns
        /// the updated map. 
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        ObjectDataMap Save(ObjectDataMap data);

        /// <summary>
        /// Loads the object data map into the object data.
        /// </summary>
        /// <param name="data"></param>
        void Load(ObjectDataMap data);
    }
}
