22 lines
514 B
C#
22 lines
514 B
C#
using Lidgren.Network;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Content.Shared.Administration;
|
|
|
|
public class GamePrototypeLoadMessage : NetMessage
|
|
{
|
|
public override MsgGroups MsgGroup => MsgGroups.String;
|
|
|
|
public string PrototypeData { get; set; } = string.Empty;
|
|
|
|
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
|
{
|
|
PrototypeData = buffer.ReadString();
|
|
}
|
|
|
|
public override void WriteToBuffer(NetOutgoingMessage buffer)
|
|
{
|
|
buffer.Write(PrototypeData);
|
|
}
|
|
}
|