Esempio n. 1
0
 public PacketOut(LogonServerOpCode opcode)
     : base(new MemoryStream())
 {
     packetId = new PacketId(opcode);
     Service  = ServiceType.Logon;
     this.Write((byte)opcode);
 }
Esempio n. 2
0
 public PacketOut(WorldServerOpCode opcode)
     : base(new MemoryStream())
 {
     packetId = new PacketId(opcode);
     Service  = ServiceType.World;
     this.Write((uint)opcode);
 }
Esempio n. 3
0
 public PacketOut(LogonServerOpCode opcode)
     : base(new MemoryStream())
 {
     packetId = new PacketId(opcode);
     Service = ServiceType.Logon;
     this.Write((byte)opcode);
 }
Esempio n. 4
0
 public PacketOut(WorldServerOpCode opcode)
     : base(new MemoryStream())
 {
     packetId = new PacketId(opcode);
     Service = ServiceType.World;
     this.Write((uint)opcode);
 }
Esempio n. 5
0
 public PacketIn(byte[] data, bool logon)
     : base(new MemoryStream(data))
 {
     packetData = data;
     PacketId = new PacketId((LogonServerOpCode)ReadByte());
 }
Esempio n. 6
0
 public PacketIn(byte[] data)
     : base(new MemoryStream(data))
 {
     packetData = data;
     PacketId = new PacketId((WorldServerOpCode)base.ReadUInt16());
 }
Esempio n. 7
0
 public PacketHandle(MethodInfo info, PacketId packetid)
 {
     this.MethodInfo = info;
     this.packetId = packetid;
 }
Esempio n. 8
0
 public PacketIn(byte[] data, bool logon)
     : base(new MemoryStream(data))
 {
     packetData = data;
     PacketId   = new PacketId((LogonServerOpCode)ReadByte());
 }
Esempio n. 9
0
 public PacketIn(byte[] data) : base(new MemoryStream(data))
 {
     packetData = data;
     PacketId   = new PacketId((WorldServerOpCode)base.ReadUInt16());
 }