mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
13 lines
280 B
C#
13 lines
280 B
C#
using System.IO;
|
|
|
|
namespace Reactor.Debugger.AutoJoin.Messages;
|
|
|
|
internal static class Extensions
|
|
{
|
|
public static void Write<T>(this BinaryWriter writer, in T message) where T : IMessage<T>
|
|
{
|
|
writer.Write((byte) T.Type);
|
|
message.Serialize(writer);
|
|
}
|
|
}
|