~ruther/NosSmooth.Comms

ref: b06241f4c3251cb4b2ddfb0bf29d5936f5906637 NosSmooth.Comms/src/Core/NosSmooth.Comms.Abstractions/Messages/HandshakeRequest.cs -rw-r--r-- 823 bytes
b06241f4 — František Boháček feat: remove Character id and name from HandshakeResponse 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
//  HandshakeRequest.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Comms.Data.Messages;

/// <summary>
/// A handshake, signaling use of MessagePack protocol and
/// registering what events to return.
/// </summary>
/// <param name="Identification">Identification of the client, does not have to be unique for clients.</param>
/// <param name="SendRawPackets">Whether to send raw serialized packets using <see cref="RawPacketMessage"/>.</param>
/// <param name="SendDeserializedPackets">Whether to send deserialized packets using <see cref="PacketMessage"/>.</param>
public record HandshakeRequest(string Identification, bool SendRawPackets, bool SendDeserializedPackets);
Do not follow this link