16 lines
342 B
C#
16 lines
342 B
C#
using System.IO;
|
|
namespace BITKit.Net
|
|
{
|
|
public class NetCommand : NetMessageReader<NetCommandType>
|
|
{
|
|
public override NetCommandType ReadBinary(BinaryReader reader)
|
|
{
|
|
return (NetCommandType)reader.ReadByte();
|
|
}
|
|
public override void WriteBinary(BinaryWriter writer, NetCommandType value)
|
|
{
|
|
writer.Write((byte)value);
|
|
}
|
|
}
|
|
}
|