Exemplo n.º 1
0
        void FillComponent(int id, INodeComponent component)
        {
            Assert.IsNotNull(m_Node);

            component.ID         = id;
            component.ParentNode = m_Node;
            component.NodeGraph  = m_NodeGraph;
        }
Exemplo n.º 2
0
        public int AddComponet(INodeComponent component)
        {
            int id = m_NodeGraph.ngNodeComponentManager.AddComponet(component);

            FillComponent(id, component);
            m_Components.Add(id, component);
            return(id);
        }
        public void RemoveComponent(INodeComponent component)
        {
            int comID = component.ID;

            Assert.IsTrue(g_Components.Remove(comID));
            g_InComponents.Remove(comID);
            g_OutComponents.Remove(comID);

            component.NodeComEventProc(INodeComponent.EEvent.Detroyed);
        }
        public int AddComponet(INodeComponent component)
        {
            int id;

            while (g_Components.ContainsKey(id = s_Random.Next()))
            {
                ;
            }
            g_Components.Add(id, component);

            return(id);
        }
Exemplo n.º 5
0
 public MessageTypeError(EMessage type, INodeComponent connect = null)
     :
     base("Error Message Type: " + type + ", Connect:" + connect)
 {
 }
Exemplo n.º 6
0
 public RequestTypeError(ERequest type, INodeComponent connect = null)
     :
     base("Error Request Type: " + type + ", Connect:" + connect)
 {
 }