Exemple #1
0
	bool isExistEventType( eEVENT_TYPE _type )
	{
		for (int i=0; i<lstAlarms.Count; i++) 
		{
			body2_SC_SERVER_EVENT_START data = lstAlarms[i];
			if( data.eEventType == _type )
				return true;
		}
		return false;
	}
Exemple #2
0
	public body2_SC_SERVER_EVENT_START Get( eEVENT_TYPE type)
	{
		foreach( KeyValuePair<int,body2_SC_SERVER_EVENT_START> pair in dicEvent)
		{
			if( type == pair.Value.eEventType)
				return pair.Value;
		}
		
		return null;
	}