sharp-chat/SharpChat.Protocol.SockChat/Packets/ServerPacket.cs

14 lines
340 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
namespace SharpChat.Protocol.SockChat.Packets {
public abstract class ServerPacket : IServerPacket {
private string Packed { get; set; }
protected abstract string DoPack();
public string Pack() {
if(Packed == null)
Packed = DoPack();
return Packed;
}
}
}