/// <summary>Default constructor.</summary> /// <param name="packetOpCode">the opcode of the packet</param> public AuthPacketOut(AuthServerOpCode packetOpCode) : base(new PacketId(packetOpCode)) { this.WriteByte((byte)packetOpCode); }
public PacketHandlerAttribute(AuthServerOpCode identifier) { Id = identifier; IsGamePacket = true; RequiresLogin = true; }
public ClientPacketHandlerAttribute(AuthServerOpCode identifier) : base(identifier) { }
///// <summary> ///// Constructor for authentication error packets. ///// </summary> ///// <param name="packetOpcode">the opcode of the packet</param> ///// <param name="error">the error of the packet</param> //public AuthPacketOut(AuthServerOpCode packetOpcode, AccountStatus error) // : base(new PacketId(packetOpcode)) //{ // base.WriteByte((byte)packetOpcode); // base.WriteByte((byte)error); //} /// <summary> /// Default constructor. /// </summary> /// <param name="packetOpCode">the opcode of the packet</param> public AuthPacketOut(AuthServerOpCode packetOpCode) : base(new PacketId(packetOpCode)) { base.WriteByte((byte)packetOpCode); }
public PacketId(AuthServerOpCode id) { Service = ServiceType.Authentication; RawId = (uint) id; }
public static PacketHeaderType Parse(this AuthServerOpCode opCode) { return(PacketHeaderType.AuthSmsg); }
public RealmPacket(AuthServerOpCode opCode) : base(opCode.Parse(), (ushort)opCode) { }
public PacketId(AuthServerOpCode id) { Service = ServiceType.Authentication; RawId = (uint)id; }
public PacketType(AuthServerOpCode opCode) : this(PacketHandleType.Logon, (ushort)opCode) { }
public PacketHandlerAttribute(AuthServerOpCode identifier) { this.Id = (PacketId)identifier; this.IsGamePacket = true; this.RequiresLogin = true; }
public AuthPacketDefinition(AuthServerOpCode opCode, params PacketSegmentStructure[] segments) { OpCode = opCode; Structure = segments.ToList(); }
public AuthPacketDefinition(AuthServerOpCode opCode, ComplexPacketSegmentStructure segments) { OpCode = opCode; Structure = segments.Segments.ToList(); }