Пример #1
0
        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);
        }
Пример #2
0
        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);
        }