Exemple #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);
 }
        public PacketHandlerAttribute(AuthServerOpCode identifier)
        {
            Id = identifier;
			IsGamePacket = true;
			RequiresLogin = true;
        }
		public ClientPacketHandlerAttribute(AuthServerOpCode identifier)
			: base(identifier)
        {
        }
Exemple #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);
        }
Exemple #5
0
 public PacketId(AuthServerOpCode id)
 {
     Service = ServiceType.Authentication;
     RawId = (uint) id;
 }
 public PacketHandlerAttribute(AuthServerOpCode identifier)
 {
     Id            = identifier;
     IsGamePacket  = true;
     RequiresLogin = true;
 }
Exemple #7
0
 public ClientPacketHandlerAttribute(AuthServerOpCode identifier)
     : base(identifier)
 {
 }
Exemple #8
0
 public static PacketHeaderType Parse(this AuthServerOpCode opCode)
 {
     return(PacketHeaderType.AuthSmsg);
 }
Exemple #9
0
 public RealmPacket(AuthServerOpCode opCode) : base(opCode.Parse(), (ushort)opCode)
 {
 }
Exemple #10
0
 public PacketId(AuthServerOpCode id)
 {
     Service = ServiceType.Authentication;
     RawId   = (uint)id;
 }
Exemple #11
0
 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();
 }