namespace Unity.Netcode
{
///
/// Interface for implementing custom serializable types.
///
public interface INetworkSerializable
{
///
/// Provides bi-directional serialization to read and write the desired data to serialize this type.
///
/// The serializer to use to read and write the data.
///
/// Either BufferSerializerReader or BufferSerializerWriter, depending whether the serializer
/// is in read mode or write mode.
///
void NetworkSerialize(BufferSerializer serializer) where T : IReaderWriter;
}
}