Exemplo n.º 1
0
 public void Unregister(T pObject)
 {
     if (pObject != null)
     {
         KBaseObject pBaseObject = pObject as KBaseObject;
         m_ObjectIndex.Remove(pBaseObject.m_dwID);
         pBaseObject.m_dwID = 0;
     }
 }
Exemplo n.º 2
0
    public int Register(T pObject, uint dwID)
    {
        if (dwID == 0)
        {
            dwID = m_dwNextID++;
        }

        if (pObject != null)
        {
            KBaseObject pBaseObject = pObject as KBaseObject;

            pBaseObject.m_dwID = dwID;

            m_ObjectIndex.Add(dwID, pObject);

            return(1);
        }
        return(0);
    }