Re-organize all projects (#4166)
This commit is contained in:
33
Content.Shared/Voting/MsgVoteCanCall.cs
Normal file
33
Content.Shared/Voting/MsgVoteCanCall.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
{
|
||||
#region REQUIRED
|
||||
|
||||
public const MsgGroups GROUP = MsgGroups.Command;
|
||||
public const string NAME = nameof(MsgVoteCanCall);
|
||||
|
||||
public MsgVoteCanCall(INetChannel channel) : base(NAME, GROUP) { }
|
||||
|
||||
#endregion
|
||||
|
||||
public bool CanCall;
|
||||
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
CanCall = buffer.ReadBoolean();
|
||||
}
|
||||
|
||||
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
||||
{
|
||||
buffer.Write(CanCall);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user