Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
        public PacketHandlerAttribute(AuthServerOpCode identifier)
        {
            Id = identifier;
			IsGamePacket = true;
			RequiresLogin = true;
        }
Exemplo n.º 3
0
		public ClientPacketHandlerAttribute(AuthServerOpCode identifier)
			: base(identifier)
        {
        }
Exemplo n.º 4
0
        ///// <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);
        }
Exemplo n.º 5
0
 public PacketId(AuthServerOpCode id)
 {
     Service = ServiceType.Authentication;
     RawId = (uint) id;
 }
Exemplo n.º 6
0
 public PacketHandlerAttribute(AuthServerOpCode identifier)
 {
     Id            = identifier;
     IsGamePacket  = true;
     RequiresLogin = true;
 }
Exemplo n.º 7
0
 public ClientPacketHandlerAttribute(AuthServerOpCode identifier)
     : base(identifier)
 {
 }
Exemplo n.º 8
0
 public static PacketHeaderType Parse(this AuthServerOpCode opCode)
 {
     return(PacketHeaderType.AuthSmsg);
 }
Exemplo n.º 9
0
 public RealmPacket(AuthServerOpCode opCode) : base(opCode.Parse(), (ushort)opCode)
 {
 }
Exemplo n.º 10
0
 public PacketId(AuthServerOpCode id)
 {
     Service = ServiceType.Authentication;
     RawId   = (uint)id;
 }
Exemplo n.º 11
0
 public PacketType(AuthServerOpCode opCode) : this(PacketHandleType.Logon, (ushort)opCode)
 {
 }
Exemplo n.º 12
0
 public PacketHandlerAttribute(AuthServerOpCode identifier)
 {
     this.Id            = (PacketId)identifier;
     this.IsGamePacket  = true;
     this.RequiresLogin = true;
 }
Exemplo n.º 13
0
 public AuthPacketDefinition(AuthServerOpCode opCode, params PacketSegmentStructure[] segments)
 {
     OpCode    = opCode;
     Structure = segments.ToList();
 }
Exemplo n.º 14
0
 public AuthPacketDefinition(AuthServerOpCode opCode, ComplexPacketSegmentStructure segments)
 {
     OpCode    = opCode;
     Structure = segments.Segments.ToList();
 }