Exemple #1
0
 //------------------------------------------------------------
 // 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();
 }
Exemple #2
0
        //------------------------------------------------------------
        // 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();
        }
Exemple #3
0
 //------------------------------------------------------------
 // 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);
 }
Exemple #4
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);
 }