Universe.Framework.SceneInfo.LandData.Copy C# (CSharp) Method

Copy() public method

Make a new copy of the land data
public Copy ( ) : LandData
return LandData
        public LandData Copy ()
        {
            LandData landData = new LandData {
                _AABBMax = _AABBMax,
                _AABBMin = _AABBMin,
                _area = _area,
                _auctionID = _auctionID,
                _authBuyerID = _authBuyerID,
                _category = _category,
                _claimDate = _claimDate,
                _claimPrice = _claimPrice,
                _globalID = _globalID,
                _groupID = _groupID,
                _isGroupOwned = _isGroupOwned,
                _localID = _localID,
                _landingType = _landingType,
                _mediaAutoScale = _mediaAutoScale,
                _mediaID = _mediaID,
                _mediaURL = _mediaURL,
                _musicURL = _musicURL,
                _ownerID = _ownerID,
                _bitmap = (byte[])_bitmap.Clone (),
                _description = _description,
                _flags = _flags,
                _name = _name,
                _status = _status,
                _passHours = _passHours,
                _passPrice = _passPrice,
                _salePrice = _salePrice,
                _snapshotID = _snapshotID,
                _userLocation = _userLocation,
                _userLookAt = _userLookAt,
                _otherCleanTime = _otherCleanTime,
                _dwell = _dwell,
                _mediaType = _mediaType,
                _mediaDescription = _mediaDescription,
                _mediaWidth = _mediaWidth,
                _mediaHeight = _mediaHeight,
                _mediaLoop = _mediaLoop,
                _MediaLoopSet = _MediaLoopSet,
                _obscureMusic = _obscureMusic,
                _obscureMedia = _obscureMedia,
                // 25062016 LibOMV update 1.0.2.1
                _seeAVs = _seeAVs,
                _anyAVSounds = _anyAVSounds,
                _groupAVSounds = _groupAVSounds,
                // End
                _regionID = _regionID,
                _regionHandle = _regionHandle,
                _Maturity = _Maturity,
                _private = _private
            };

            landData._parcelAccessList.Clear ();

            foreach (
                ParcelManager.ParcelAccessEntry newEntry in
                    _parcelAccessList.Select(entry => new ParcelManager.ParcelAccessEntry
                                                          {
                                                              AgentID = entry.AgentID,
                                                              Flags = entry.Flags,
                                                              Time = entry.Time
                                                          }))
            {
                landData._parcelAccessList.Add (newEntry);
            }

            return landData;
        }