Ejemplo n.º 1
0
        public void Rebuild(RebuildMode rebuildMode)
        {
            IBlackboardProvider blackboardProvider =
                ((VSGraphModel)Store.GetState().CurrentGraphModel).Stencil.GetBlackboardProvider();

            if (Sections == null || m_LastProvider != blackboardProvider)
            {
                m_LastProvider = blackboardProvider;
                ClearContents();
                Clear();
                Sections = blackboardProvider?.CreateSections().ToList();
                Sections?.ForEach(Add);
            }

            if (rebuildMode == RebuildMode.BlackboardAndGraphView)
            {
                Store.Dispatch(new RefreshUIAction(UpdateFlags.GraphTopology));
            }
            else
            {
                RebuildBlackboard();
            }
        }
Ejemplo n.º 2
0
 public virtual IBlackboardProvider GetBlackboardProvider()
 {
     return(m_BlackboardProvider ?? (m_BlackboardProvider = new BlackboardProvider(this)));
 }