示例#1
0
文件: NodeSys.cs 项目: cyecp/GF.Core
    //-------------------------------------------------------------------------
    public void destroy()
    {
        foreach (var it in mMapNodeMgr)
        {
            it.Value.Dispose();
        }
        mMapNodeMgr.Clear();

        mMapNodeDefFile.Clear();

        if (mNodeScriptMgr != null)
        {
            mNodeScriptMgr.destroy();
            mNodeScriptMgr = null;
        }

        if (mNodeEffectMgr != null)
        {
            mNodeEffectMgr.destroy();
            mNodeEffectMgr = null;
        }

        if (mNodeTriggerMgr != null)
        {
            mNodeTriggerMgr.destroy();
            mNodeTriggerMgr = null;
        }

        if (mNodeTriggerConditionMgr != null)
        {
            mNodeTriggerConditionMgr.destroy();
            mNodeTriggerConditionMgr = null;
        }
    }
示例#2
0
文件: NodeSys.cs 项目: cyecp/GF.Core
    //-------------------------------------------------------------------------
    public void create(string nodesys_media_path, bool is_client, bool test_mode)
    {
        mNodeSysMediaPath = nodesys_media_path;
        mIsClient         = is_client;
        mbTestMode        = test_mode;

        // 创建效果管理器
        if (mNodeEffectMgr == null)
        {
            mNodeEffectMgr = new CNodeEffectMgr();
        }

        // 创建触发器管理器
        if (mNodeTriggerMgr == null)
        {
            mNodeTriggerMgr = new CNodeTriggerMgr();
        }

        // 创建触发条件管理器
        if (mNodeTriggerConditionMgr == null)
        {
            mNodeTriggerConditionMgr = new CNodeTriggerConditionMgr();
        }

        // 创建脚本管理器
        if (mNodeScriptMgr == null)
        {
            mNodeScriptMgr = new CNodeScriptMgr();
            mNodeScriptMgr.create("", "");
        }

        // 创建
        _create();
    }
示例#3
0
文件: NodeSys.cs 项目: yinlei/Fishing
    //-------------------------------------------------------------------------
    public void create(string nodesys_media_path, bool is_client, bool test_mode)
    {
        mNodeSysMediaPath = nodesys_media_path;
        mIsClient = is_client;
        mbTestMode = test_mode;

        // 创建效果管理器
        if (mNodeEffectMgr == null)
        {
            mNodeEffectMgr = new CNodeEffectMgr();
        }

        // 创建触发器管理器
        if (mNodeTriggerMgr == null)
        {
            mNodeTriggerMgr = new CNodeTriggerMgr();
        }

        // 创建触发条件管理器
        if (mNodeTriggerConditionMgr == null)
        {
            mNodeTriggerConditionMgr = new CNodeTriggerConditionMgr();
        }

        // 创建脚本管理器
        if (mNodeScriptMgr == null)
        {
            mNodeScriptMgr = new CNodeScriptMgr();
            mNodeScriptMgr.create("", "");
        }

        // 创建
        _create();
    }
示例#4
0
文件: NodeSys.cs 项目: yinlei/Fishing
    //-------------------------------------------------------------------------
    public void destroy()
    {
        foreach (var it in mMapNodeMgr)
        {
            it.Value.Dispose();
        }
        mMapNodeMgr.Clear();

        mMapNodeDefFile.Clear();

        if (mNodeScriptMgr != null)
        {
            mNodeScriptMgr.destroy();
            mNodeScriptMgr = null;
        }

        if (mNodeEffectMgr != null)
        {
            mNodeEffectMgr.destroy();
            mNodeEffectMgr = null;
        }

        if (mNodeTriggerMgr != null)
        {
            mNodeTriggerMgr.destroy();
            mNodeTriggerMgr = null;
        }

        if (mNodeTriggerConditionMgr != null)
        {
            mNodeTriggerConditionMgr.destroy();
            mNodeTriggerConditionMgr = null;
        }
    }