/// <summary> /// 注册事件回调信息 /// </summary> /// <param name="uEventId"></param> /// <param name="tArgsType"></param> /// <returns></returns> public bool RegisterAction(UInt32 uEventId, Type tArgsType, string strName = "") { CHandleInfo handInfo = null; if (m_EventActionList.QuickFind(uEventId, ref handInfo) == true) { return(false); } handInfo = new CHandleInfo(); handInfo.SetArgType(tArgsType); if (string.IsNullOrEmpty(strName) == true) { strName = "Event_" + uEventId.ToString(); } handInfo.SetName(strName); if (m_EventActionList.Add(uEventId, handInfo) == false) { return(false); } return(true); }