mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
30 lines
824 B
C#
30 lines
824 B
C#
using Lidgren.Network;
|
|
|
|
#nullable disable
|
|
|
|
namespace Robust.Shared.Network.Messages
|
|
{
|
|
/// <summary>
|
|
/// Sent from client to server or server to client to notify to close a session.
|
|
/// </summary>
|
|
public class MsgViewVariablesCloseSession : NetMessage
|
|
{
|
|
public override MsgGroups MsgGroup => MsgGroups.Command;
|
|
|
|
/// <summary>
|
|
/// The session ID to close, which was agreed upon in <see cref="MsgViewVariablesOpenSession.SessionId"/>.
|
|
/// </summary>
|
|
public uint SessionId { get; set; }
|
|
|
|
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
|
{
|
|
SessionId = buffer.ReadUInt32();
|
|
}
|
|
|
|
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
|
{
|
|
buffer.Write(SessionId);
|
|
}
|
|
}
|
|
}
|