public PacketHandlerAttribute(PacketHandlerType type, int opcode, int statelevel, string desc)
 {
     m_type       = type;
     m_opcode     = opcode;
     m_desc       = desc;
     m_statelevel = statelevel;
 }
Exemplo n.º 2
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="type">Type of packet to handle</param>
		/// <param name="code">ID of the packet to handle</param>
		/// <param name="desc">Description of the packet handler</param>
		public PacketHandlerAttribute(PacketHandlerType type, int code, string desc)
		{
			m_type = type;
			m_code = code;
			m_desc = desc;
			m_preprocessorId = (int)eClientStatus.None;
		}
Exemplo n.º 3
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="type">Type of packet to handle</param>
		/// <param name="code">ID of the packet to handle</param>
		/// <param name="desc">Description of the packet handler</param>
		/// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
		public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, int preprocessorId)
		{
			m_type = type;
			m_code = code;
			m_desc = desc;
			m_preprocessorId = preprocessorId;
		}
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, eClientStatus preprocessorId)
 {
     Type           = type;
     Code           = code;
     Description    = desc;
     PreprocessorID = (int)preprocessorId;
 }
 public PacketHandlerAttribute(PacketHandlerType type, int opcode,int statelevel, string desc)
 {
     m_type = type;
     m_opcode = opcode;
     m_desc = desc;
     m_statelevel = statelevel;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, eClientPackets code, eClientStatus preprocessorId)
 {
     Type           = type;
     Code           = (int)code;
     Description    = string.Empty;
     PreprocessorID = (int)preprocessorId;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, int preprocessorId)
 {
     Type           = type;
     Code           = code;
     Description    = desc;
     PreprocessorID = preprocessorId;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, eClientStatus preprocessorId)
 {
     m_type           = type;
     m_code           = code;
     m_desc           = desc;
     m_preprocessorId = (int)preprocessorId;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, int preprocessorId)
 {
     m_type           = type;
     m_code           = code;
     m_desc           = desc;
     m_preprocessorId = preprocessorId;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, eClientPackets code, eClientStatus preprocessorId)
 {
     m_type           = type;
     m_code           = (int)code;
     m_desc           = "";
     m_preprocessorId = (int)preprocessorId;
 }
Exemplo n.º 11
0
 public PacketHandlerAttribute(PacketHandlerType type, int opcode, int statelevel, string desc)
 {
     Type        = type;
     Opcode      = opcode;
     Description = desc;
     State       = statelevel;
 }
Exemplo n.º 12
0
        public void Add(short opCode, PacketHandlerType handler, bool requireLogin = true)
        {
            var entry = new HandlerEntry()
            {
                RequireLogin = requireLogin,
                Handler      = handler
            };

            m_handlers.Add(opCode, entry);
        }
Exemplo n.º 13
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="type">Type of packet to handle</param>
		/// <param name="code">ID of the packet to handle</param>
		/// <param name="desc">Description of the packet handler</param>
		/// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
		public PacketHandlerAttribute(PacketHandlerType type, eClientPackets code, string desc, eClientStatus preprocessorId)
		{
			m_type = type;
			m_code = (int)code;
			m_desc = desc;
			m_preprocessorId = (int)preprocessorId;
		}
Exemplo n.º 14
0
 public PacketHandlerAttribute(PacketHandlerType type, int opcode, string desc)
     : this(type, opcode, 0, desc)
 {
 }
 public PacketHandlerAttribute(PacketHandlerType type, int opcode, string desc)
     : this(type,opcode,0,desc)
 {
 }
Exemplo n.º 16
0
 protected PacketHandler(PacketHandlerType handlerType)
 {
     HandlerType = handlerType;
 }