//------------------------------------------------------------ // 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(); }
//------------------------------------------------------------ // CMapBase.Copy (3) // /// <summary> /// Copy PREPROC instance from oldMap to this. /// </summary> //------------------------------------------------------------ internal void Copy(CMapBase <PREPROC> oldMap, int startLine) { Copy(oldMap, startLine, System.Int32.MaxValue, 0); }
//------------------------------------------------------------ // CMapBase.Copy (2) // /// <summary> /// Copy PREPROC instance from oldMap to this. /// </summary> //------------------------------------------------------------ internal void Copy(CMapBase <PREPROC> oldMap, int startLine, int endLine) { Copy(oldMap, startLine, endLine, 0); }