Navigation:  Reference > Sector Class > Methods >

CreateSubmapFromSelected

Previous pageReturn to chapter overviewNext page

CreateSubmapFromSelected( newsector: Sector; nSize: Float; nShape: Integer)

 

Copies a section of a Sector map into another Sector map, based around the location of the first selected system on the map.

newsector is the destination Sector object that will be copied to.  All systems within nSize light years of the first selected system on a map are copied into newsector, and the center of the map is repositioned so that the selected system in the source sector is located at (0,0,0).  Since nSize specifies the distance from a selected system, the resultant map will be nSize x 2 across.

nShape represents the selection style when determining which nearby systems to include in the sub-map.  If nShape is 0, then all systems within a cube whose edges are nSize from the selected system are include.  If nShape is 1, then only those systems within nSize in distance from the selected system are included (i.e., a spherical selection of all systems within nSize radius).