Exemplo n.º 1
0
 public IncomingWorldPacket(WorldOpCode opCode, byte[] data, int length)
     : base(opCode, data, length, Constants.Protocol.Encoding)
 {
     Contract.Requires(data != null);
     Contract.Requires(length >= 0);
     Contract.Requires(length <= data.Length);
 }
Exemplo n.º 2
0
 public IncomingWorldPacket(WorldOpCode opCode, byte[] data, int length)
     : base(opCode, data, length, Constants.Protocol.Encoding)
 {
     Contract.Requires(data != null);
     Contract.Requires(length >= 0);
     Contract.Requires(length <= data.Length);
 }
Exemplo n.º 3
0
 public OutgoingWorldPacket(WorldOpCode opCode, int capacity = 0)
     : base(opCode, Defines.Protocol.Encoding, capacity)
 {
     Contract.Requires(capacity >= 0);
 }
Exemplo n.º 4
0
 public OutgoingPacket(WorldOpCode packetId)
     : base(new MemoryStream())
 {
     this.PacketId = packetId;
 }
Exemplo n.º 5
0
 public OutgoingWorldPacket(WorldOpCode opCode, int capacity = 0)
     : base(opCode, Constants.Protocol.Encoding, capacity)
 {
     Contract.Requires(capacity >= 0);
 }
Exemplo n.º 6
0
 public OutgoingRealmPacket(WorldOpCode opcode)
     : base(opcode)
 {
     this.Position += 2;
     this.Write((ushort)opcode);
 }
Exemplo n.º 7
0
 public WorldPacketHandlerAttribute(WorldOpCode opCode)
     : base(opCode)
 {
 }