//------------------------------------------------------------ // CMapBase.Copy (4) // /// <summary> /// Copy PREPROC instance from oldMap to this. /// </summary> //------------------------------------------------------------ internal void Copy(CMapBase <PREPROC> oldMap) { foreach (MAPABLE <PREPROC> elm in oldMap.mapList) { MAPABLE <PREPROC> newElm = new MAPABLE <PREPROC>(); newElm.CopyFrom(elm); this.mapList.Add(newElm); } SortList(); }
//------------------------------------------------------------ // CMapBase.Copy (1) // /// <summary> /// Copy PREPROC instance from oldMap to this. /// </summary> //------------------------------------------------------------ internal void Copy(CMapBase <PREPROC> oldMap, int startLine, int endLine, int delta) { if (startLine > endLine) { return; } foreach (MAPABLE <PREPROC> elm in oldMap.mapList) { if (elm.mapLine >= startLine && elm.mapLine <= endLine) { MAPABLE <PREPROC> newElm = new MAPABLE <PREPROC>(); newElm.CopyFrom(elm); this.mapList.Add(newElm); } } SortList(); }