예제 #1
0
    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;
    }
예제 #2
0
    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;
    }
예제 #3
0
 public bool IsPrototype()
 {
     return(ProtoId.IsProto());
 }