Net.Like.Xue.Tokyo/Assets/BITKit/NetSupport/NetSupport.cs

16 lines
342 B
C#
Raw Normal View History

2024-11-03 16:42:23 +08:00
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);
}
}
}