public PacketOut(LogonServerOpCode opcode) : base(new MemoryStream()) { packetId = new PacketId(opcode); Service = ServiceType.Logon; this.Write((byte)opcode); }
public PacketOut(WorldServerOpCode opcode) : base(new MemoryStream()) { packetId = new PacketId(opcode); Service = ServiceType.World; this.Write((uint)opcode); }
public PacketIn(byte[] data, bool logon) : base(new MemoryStream(data)) { packetData = data; PacketId = new PacketId((LogonServerOpCode)ReadByte()); }
public PacketIn(byte[] data) : base(new MemoryStream(data)) { packetData = data; PacketId = new PacketId((WorldServerOpCode)base.ReadUInt16()); }
public PacketHandle(MethodInfo info, PacketId packetid) { this.MethodInfo = info; this.packetId = packetid; }