public void ListenStateEvent(Dictionary<int, StateListenerEvent> vDic, int vStateType, StateListenerEvent vSateListenerEvent) { if(vDic.ContainsKey(vStateType)){ vDic[vStateType] += vSateListenerEvent; }else{ vDic[vStateType] = vSateListenerEvent; } }
public void ListenToStateEvent(int vStateType, StateListenerEvent vSateListenerEvent) { ListenStateEvent(_id2ToStateListenerEvent, vStateType, vSateListenerEvent); }