public uint CreateActionNode(ActionNode.Do func) { ActionNode newNode = new ActionNode(func); newNode.SetID(++m_nodeID); uint a = newNode.GetID(); m_nodeDic.Add(a, newNode); return(a); }
private uint CreateActionNodeWithID(ActionNode.Do func, uint nodeID) { if (m_nodeDic.ContainsKey(nodeID)) { return(0xffffffff); // id already exists } ActionNode newNode = new ActionNode(func); newNode.SetID(nodeID); m_nodeDic.Add(nodeID, newNode); return(nodeID); }