mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 05:02:33 +00:00
* kills off heaps * turf reservations * lazy loading map templates * atmos + a comment * port LISTASSERTLEN and rename a proc * CI happy * yes * oops * removes blocks air and adds comments
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
/// Turf will be passable if density is 0
|
|
#define TURF_PATHING_PASS_DENSITY 0
|
|
/// Turf will be passable depending on [/atom/proc/CanPathfindPass] return value
|
|
#define TURF_PATHING_PASS_PROC 1
|
|
/// Turf is never passable
|
|
#define TURF_PATHING_PASS_NO 2
|
|
|
|
/// Returns a list of turfs similar to CORNER_BLOCK but with offsets
|
|
#define CORNER_BLOCK_OFFSET(corner, width, height, offset_x, offset_y) (block(corner.x + offset_x, corner.y + offset_y, corner.z, corner.x + (width - 1) + offset_x, corner.y + (height - 1) + offset_y))
|
|
|
|
/// Returns a list of around us
|
|
#define TURF_NEIGHBORS(turf) (CORNER_BLOCK_OFFSET(turf, 3, 3, -1, -1) - turf)
|
|
|
|
#define MINERAL_PREVENT_DIG 0 //! A mineral turf should not be changed when mined.
|
|
#define MINERAL_ALLOW_DIG 1 //! A mineral turf should be dug out when mined.
|
|
|
|
/// Returns an outline (neighboring turfs) of the given block
|
|
#define CORNER_OUTLINE(corner, width, height) ( \
|
|
CORNER_BLOCK_OFFSET(corner, width + 2, 1, -1, -1) + \
|
|
CORNER_BLOCK_OFFSET(corner, width + 2, 1, -1, height) + \
|
|
CORNER_BLOCK_OFFSET(corner, 1, height, -1, 0) + \
|
|
CORNER_BLOCK_OFFSET(corner, 1, height, width, 0))
|