예제 #1
0
        void InstanceAssetGraph()
        {
            if (_assetGraph == null)
            {
                return;
            }

            _graphInstance = _assetGraph.Clone();
        }
예제 #2
0
        public void BindGraph(DashGraph p_graph)
        {
            _assetGraph           = null;
            _graphInstance        = null;
            _selfReferenceIndex   = -1;
            _boundGraphData       = null;
            _boundGraphReferences = null;

            if (p_graph != null)
            {
                DashGraph graph = p_graph.Clone();
                _boundGraphData     = graph.SerializeToBytes(DataFormat.Binary, ref _boundGraphReferences);
                _selfReferenceIndex = _boundGraphReferences.FindIndex(r => r == graph);
            }
        }