private void LoadBlocks(IEnumerable <MyWorkingNode> nodeList) { MyMemoryBlockSerializer serializer = new MyMemoryBlockSerializer(); var isFirst = true; foreach (MyWorkingNode node in nodeList) { if (LoadAllNodesData || node.LoadOnStart) { foreach (MyAbstractMemoryBlock mb in MyMemoryManager.Instance.GetBlocks(node)) { if (mb.Persistable) { if (isFirst) { MyLog.INFO.WriteLine("Loading state from: " + MyMemoryBlockSerializer.GetTempStorage(m_project)); } isFirst = false; serializer.LoadBlock(mb, GlobalDataFolder); } } } } }
private void LoadBlocks(List <MyWorkingNode> nodeList) { MyMemoryBlockSerializer serializer = new MyMemoryBlockSerializer(); for (int j = 0; j < nodeList.Count; j++) { MyWorkingNode node = nodeList[j]; if (LoadAllNodesData || node.LoadOnStart) { foreach (MyAbstractMemoryBlock mb in MyMemoryManager.Instance.GetBlocks(node)) { if (mb.Persistable) { serializer.LoadBlock(mb, GlobalDataFolder); } } } } }