using System;
using System.Threading.Tasks;
using Robust.Shared.Network;
namespace Robust.Shared.Serialization
{
internal abstract partial class RobustSerializer
{
///
/// Initiates any sequence of handshake extensions that
/// need to occur before the serializer is initialized
/// for a given client.
///
///
///
public Task Handshake(INetChannel channel)
=> MappedStringSerializer.Handshake(channel);
///
/// An event that occurs once all handshake extensions have
/// completed for the client.
///
/// Note: This should not occur on the server.
///
public event Action ClientHandshakeComplete
{
add => MappedStringSerializer.ClientHandshakeComplete += value;
remove => MappedStringSerializer.ClientHandshakeComplete -= value;
}
}
}