예제 #1
0
파일: Store.cs 프로젝트: zxx2112/TankBattle
        void CheckForTopologyChanges()
        {
            State state = GetState();

            IGraphModel      currentGraphModel = state.CurrentGraphModel;
            IEditorDataModel editorDataModel   = state.EditorDataModel;

            if (editorDataModel != null && currentGraphModel.HasAnyTopologyChange())
            {
                editorDataModel.SetUpdateFlag(editorDataModel.UpdateFlags | UpdateFlags.GraphTopology);
            }

            if (editorDataModel != null && currentGraphModel?.LastChanges?.RequiresRebuild == true)
            {
                editorDataModel.SetUpdateFlag(editorDataModel.UpdateFlags | UpdateFlags.RequestRebuild);
            }
        }