예제 #1
0
    // 利用 ID 去取得描述的中文字
    public static string GetEnumAttribute(ClientActionID reportType)
    {
        var members     = typeof(ClientActionID).GetMember(reportType.ToString());
        var attributes  = members[0].GetCustomAttributes(typeof(ClientActionIDMapAttribute), false);
        var description = ((ClientActionIDMapAttribute)attributes[0]).Description;

        return(description);
    }
예제 #2
0
    public override string ToString()
    {
        string strResult = string.Format("[CClientActionData] CID:{0}, Value:{1}", m_CID.ToString(), m_Value);

        return(strResult);
    }
예제 #3
0
 public static void PushClientAction(ClientActionID ClientActionName, object Value, Dictionary <string, object> dictProtocol, object State)
 {
     LogMgr.DebugLog("[ClientService.PushClientAction] ClientActionName:{0}, Value:{1}", ClientActionName.ToString(), Value);
     ModifyClientAction(new CClientActionData(ClientActionName, Value, dictProtocol, State));
 }