Exemple #1
0
 public void Send(CtosMessage message)
 {
     using (BinaryWriter writer = new BinaryWriter(new MemoryStream()))
     {
         writer.Write((byte)message);
         Send(writer);
     }
 }
 public GameClientPacket(CtosMessage message)
 {
     _stream = new MemoryStream();
     _writer = new BinaryWriter(_stream);
     _writer.Write((byte)message);
 }
 public void Send(CtosMessage message, byte value)
 {
     GameClientPacket packet = new GameClientPacket(message);
     packet.Write(value);
     Send(packet);
 }
 public void Send(CtosMessage message)
 {
     Send(new GameClientPacket(message));
 }
Exemple #5
0
 public GamePacketWriter(CtosMessage message)
 {
     InitializeStream();
     _writer.Write((byte)message);
 }
Exemple #6
0
 public void Send(CtosMessage message, int value)
 {
     GamePacketWriter packet = new GamePacketWriter(message);
     packet.Write(value);
     Send(packet);
 }
Exemple #7
0
 public void Send(CtosMessage message)
 {
     Send(new GamePacketWriter(message));
 }
 public static BinaryWriter Create(CtosMessage message)
 {
     BinaryWriter writer = new BinaryWriter(new MemoryStream());
     writer.Write((byte)message);
     return writer;
 }