示例#1
0
    //-------------------------------------------------------------------------
    // 初始化,根据List<_tNodeInfo>创建所有Node
    public void serverSetListNodeInfo(List <_tNodeInfo> list_nodeinfo, bool first_run)
    {
        if (list_nodeinfo == null || list_nodeinfo.Count == 0 && first_run)
        {
            CNodeConfig cfg = mNodeSys._getConfig();
            _opCreateNode(cfg.getStartEntity(), _eNodeState.Init, -1);
        }
        else
        {
            _setListNodeInfo(list_nodeinfo);
        }

        updateQueNodeOp();
    }
示例#2
0
文件: NodeMgr.cs 项目: xubingyue/def
    //-------------------------------------------------------------------------
    // 初始化,根据List<_tNodeInfo>创建所有Node
    public void setListNodeInfo(List<_tNodeInfo> list_nodeinfo)
    {
        if (list_nodeinfo == null || list_nodeinfo.Count == 0)
        {
            if (!mIsClient)
            {
                CNodeConfig cfg = mNodeSys._getConfig();
                _opCreateNode(cfg.getStartEntity(), _eNodeState.Init, -1);
            }
        }
        else
        {
            _setListNodeInfo(list_nodeinfo);
        }

        updateQueNodeOp(mQueNodeOp);
    }