Shiptest 13 - Modules - TypesVar Details - Proc Details

virtual_level

Vars

crosslinkedNeighboring virtual levels, associative by direction
down_linkageVirtual level that is below this one (multi-z)
high_xThe high X boundary of the sub-zone
high_yThe high Y boundary of the sub-zone
low_xThe low X boundary of the sub-zone
low_yThe low Y boundary of the sub-zone
mapping_marginMargin for dockers and ruins to avoid placing things
parent_levelZ level which contains this virtual level
reserved_marginThe amount of margin we have reserved in turfs on all sides of the reservation
traitsTraits of this virtual level
up_linkageVirtual level that is above this one (multi-z)
x_distanceDistance in the X axis of the sub-zone
y_distanceDistance in the Y axis of the sub-zone
z_valueZ value of the virtual level, for easy access

Procs

NewShould you want to do any advanced shanenigans, you can turn this into an argument and adjust unlink logic, and it'll work
get_side_turfGets a random turf on a side of a virtual level
get_traitCreate a dummy reservation to safeguard this space from being allocated mid-clearing in case the virtual level does get deleted

Var Details

crosslinked

Neighboring virtual levels, associative by direction

down_linkage

Virtual level that is below this one (multi-z)

high_x

The high X boundary of the sub-zone

high_y

The high Y boundary of the sub-zone

low_x

The low X boundary of the sub-zone

low_y

The low Y boundary of the sub-zone

mapping_margin

Margin for dockers and ruins to avoid placing things

parent_level

Z level which contains this virtual level

reserved_margin

The amount of margin we have reserved in turfs on all sides of the reservation

traits

Traits of this virtual level

up_linkage

Virtual level that is above this one (multi-z)

x_distance

Distance in the X axis of the sub-zone

y_distance

Distance in the Y axis of the sub-zone

z_value

Z value of the virtual level, for easy access

Proc Details

New

Should you want to do any advanced shanenigans, you can turn this into an argument and adjust unlink logic, and it'll work

get_side_turf

Gets a random turf on a side of a virtual level

get_trait

Create a dummy reservation to safeguard this space from being allocated mid-clearing in case the virtual level does get deleted