1
This commit is contained in:
15
Assets/BITKit/NetSupport/NetSupport.cs
Normal file
15
Assets/BITKit/NetSupport/NetSupport.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user