void FillComponent(int id, INodeComponent component) { Assert.IsNotNull(m_Node); component.ID = id; component.ParentNode = m_Node; component.NodeGraph = m_NodeGraph; }
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); }
public MessageTypeError(EMessage type, INodeComponent connect = null) : base("Error Message Type: " + type + ", Connect:" + connect) { }
public RequestTypeError(ERequest type, INodeComponent connect = null) : base("Error Request Type: " + type + ", Connect:" + connect) { }