using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using UnityEngine;
namespace BayatGames.SaveGameFree.Serializers
{
///
/// Interface for Save Game Serializers.
///
public interface ISaveGameSerializer
{
///
/// Serialize the specified object to stream with encoding.
///
/// Object.
/// Stream.
/// Encoding.
/// The 1st type parameter.
void Serialize ( T obj, Stream stream, Encoding encoding );
///
/// Deserialize the specified object from stream using the encoding.
///
/// Stream.
/// Encoding.
/// The 1st type parameter.
T Deserialize ( Stream stream, Encoding encoding );
}
}