void AddEventListener <T, K>(ProtoId id, Action <T, K> handler) { Delegate d; if (!m_handleDict.TryGetValue(id, out d)) { m_handleDict.Add(id, null); } m_handleDict[id] = (Action <T, K>)d + handler; }
void AddEventListener(ProtoId id, Action handler) { // m_handleDict[id] += handler; Delegate d; if (!m_handleDict.TryGetValue(id, out d)) { m_handleDict.Add(id, null); } m_handleDict[id] = (Action)m_handleDict[id] + handler; }
public bool IsPrototype() { return(ProtoId.IsProto()); }