コード例 #1
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;
 }
コード例 #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>
 /// <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;
 }
コード例 #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, eClientPackets code, string desc, eClientStatus preprocessorId)
		{
			m_type = type;
			m_code = (int)code;
			m_desc = desc;
			m_preprocessorId = (int)preprocessorId;
		}