virtual_level
Vars | |
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 |
name | An admin-facing name used to identify the virtual level. May be duplicate, or changed after instancing. |
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 |
Procs | |
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 |
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
name
An admin-facing name used to identify the virtual level. May be duplicate, or changed after instancing.
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