public PacketHandlerAttribute(PacketHandlerType type, int opcode, int statelevel, string desc) { m_type = type; m_opcode = opcode; m_desc = desc; m_statelevel = statelevel; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
public PacketHandlerAttribute(PacketHandlerType type, int opcode, int statelevel, string desc) { Type = type; Opcode = opcode; Description = desc; State = statelevel; }
public void Add(short opCode, PacketHandlerType handler, bool requireLogin = true) { var entry = new HandlerEntry() { RequireLogin = requireLogin, Handler = handler }; m_handlers.Add(opCode, entry); }
/// <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; }
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) { }
protected PacketHandler(PacketHandlerType handlerType) { HandlerType = handlerType; }