Mid-game prototype loading for game admins (#5675)
This commit is contained in:
25
Content.Shared/Administration/GamePrototypeLoadMessage.cs
Normal file
25
Content.Shared/Administration/GamePrototypeLoadMessage.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Lidgren.Network;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Administration;
|
||||
|
||||
[NetSerializable]
|
||||
[Serializable]
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user