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