Add ShowRules commmand (#5908)

This commit is contained in:
ShadowCommander
2021-12-28 23:31:18 -08:00
committed by GitHub
parent 9a0055a0ef
commit ca8d673fad
6 changed files with 122 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
using JetBrains.Annotations;
using Lidgren.Network;
using Robust.Shared.Network;
namespace Content.Shared.Info;
public abstract class SharedRulesManager
{
[UsedImplicitly]
public sealed class ShowRulesPopupMessage : NetMessage
{
public override MsgGroups MsgGroup => MsgGroups.Command;
public float PopupTime { get; set; }
public override void ReadFromBuffer(NetIncomingMessage buffer)
{
PopupTime = buffer.ReadFloat();
}
public override void WriteToBuffer(NetOutgoingMessage buffer)
{
buffer.Write(PopupTime);
}
}
}