Пример #1
0
    public void ListenStateEvent(Dictionary<int, StateListenerEvent> vDic,
	                             int vStateType, 
	                             StateListenerEvent vSateListenerEvent)
    {
        if(vDic.ContainsKey(vStateType)){
            vDic[vStateType] += vSateListenerEvent;
        }else{
            vDic[vStateType] = vSateListenerEvent;
        }
    }
Пример #2
0
 public void ListenToStateEvent(int vStateType, StateListenerEvent vSateListenerEvent)
 {
     ListenStateEvent(_id2ToStateListenerEvent,
                      vStateType,
                      vSateListenerEvent);
 }