예제 #1
0
        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);
        }
예제 #2
0
 public WBGridBase(string name, IWBNodeLayer initLayer)
 {
     Slaver = new WBMemTacticBase(this);
     LayerList.AddFirst(initLayer);
     Name = name;
 }
예제 #3
0
 /// <summary>
 /// добавляет еще один слой в начало LayerList
 /// </summary>
 /// <param name="deltaTau"></param>
 public void AddLayer(IWBNodeLayer layer)
 {
     LayerList.AddFirst(layer);
 }