mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-11-01 04:51:21 +03:00
26 lines
647 B
C#
26 lines
647 B
C#
#nullable enable
|
|
using Lidgren.Network;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Content.Shared.Voting
|
|
{
|
|
/// <summary>
|
|
/// Used to tell clients whether they are able to currently call votes.
|
|
/// </summary>
|
|
public sealed class MsgVoteCanCall : NetMessage
|
|
{
|
|
public override MsgGroups MsgGroup => MsgGroups.Command;
|
|
|
|
public bool CanCall;
|
|
|
|
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
|
{
|
|
CanCall = buffer.ReadBoolean();
|
|
}
|
|
|
|
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
|
{
|
|
buffer.Write(CanCall);
|
|
}
|
|
}
|
|
}
|