public bool CheckEventExists(int type) { if (m_sEventList != null) { // bool isExists = m_sEventList.Exists(delegate (SEventInfo info) { // return info.eventType.Equals(type); // }); // if (isExists == false) // isExists = m_eventTable.CheckEventMasterActiveClient((EVENT_TYPE)type); bool isExists = false; for (int i = 0; i < m_sEventList.Count; i++) { if (m_sEventList[i].eventType.Equals(type)) { EventMasterInfo eMInfo = GetEventTable.GetEventMasterInfo((EVENT_TYPE)type); isExists = SdkManager.instance.CheckGameEventExists(eMInfo.index) && GetEventTable.CheckEventMasterActiveClient((EVENT_TYPE)type); break; } } return(isExists); } return(false); }
public bool CheckEventExists(EventMasterInfo info) { if (m_sEventList != null) { bool isExists = m_sEventList.Exists(delegate(SEventInfo sInfo) { return(sInfo.eventType.Equals((int)info.type)); }); if (isExists == false) { isExists = info.CheckClientEnable(); } isExists = isExists ? SdkManager.instance.CheckGameEventExists(info.index) : isExists; return(isExists); } return(false); }