public bool Load(GridSaveLoadObj loadObj, double objTime) { try { var obj = (GridSaveLoadObj)loadObj; TimeCurr = obj.Time; LayerList.Clear(); foreach (var lr in obj.Layers.OrderBy(ll => ll.Time)) { LayerList.AddFirst(lr); lr.ActionWhenLoad(); } Slaver = obj.MemTactic; Slaver.LoadWhatToDo(); } catch (Exception) { return(false); } return(true); }
public WBGridBase(string name, IWBNodeLayer initLayer) { Slaver = new WBMemTacticBase(this); LayerList.AddFirst(initLayer); Name = name; }
/// <summary> /// добавляет еще один слой в начало LayerList /// </summary> /// <param name="deltaTau"></param> public void AddLayer(IWBNodeLayer layer) { LayerList.AddFirst(layer); }