* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using Lidgren.Network;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Content.Shared.Chat
|
|
{
|
|
/// <summary>
|
|
/// This message is sent by the server to let clients know what is the chat's character limit for this server.
|
|
/// It is first sent by the client as a request
|
|
/// </summary>
|
|
public sealed class ChatMaxMsgLengthMessage : NetMessage
|
|
{
|
|
#region REQUIRED
|
|
|
|
public const MsgGroups GROUP = MsgGroups.Command;
|
|
public const string NAME = nameof(ChatMaxMsgLengthMessage);
|
|
public ChatMaxMsgLengthMessage(INetChannel channel) : base(NAME, GROUP) { }
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// The max length a player-sent message can get
|
|
/// </summary>
|
|
public int MaxMessageLength { get; set; }
|
|
|
|
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
|
{
|
|
MaxMessageLength = buffer.ReadInt32();
|
|
}
|
|
|
|
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
|
{
|
|
buffer.Write(MaxMessageLength);
|
|
}
|
|
}
|
|
}
|