Track rule reading in database, don't show popup locally (#7278)
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
using JetBrains.Annotations;
|
||||
using Lidgren.Network;
|
||||
using Lidgren.Network;
|
||||
using Robust.Shared.Network;
|
||||
|
||||
namespace Content.Shared.Info;
|
||||
|
||||
public abstract class SharedRulesManager
|
||||
{
|
||||
[UsedImplicitly]
|
||||
/// <summary>
|
||||
/// Sent by the server to show the rules to the client instantly.
|
||||
/// </summary>
|
||||
public sealed class ShowRulesPopupMessage : NetMessage
|
||||
{
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
@@ -23,4 +24,36 @@ public abstract class SharedRulesManager
|
||||
buffer.Write(PopupTime);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sent by the server when the client needs to display the rules on join.
|
||||
/// </summary>
|
||||
public sealed class ShouldShowRulesPopupMessage : NetMessage
|
||||
{
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
}
|
||||
|
||||
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sent by the client when it has accepted the rules.
|
||||
/// </summary>
|
||||
public sealed class RulesAcceptedMessage : NetMessage
|
||||
{
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
}
|
||||
|
||||
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user