turf
Vars | |
fixed_underlay | Icon-smoothing variable to map a diagonal wall corner with a fixed underlay. |
---|---|
oxygen | Properties for open tiles (/floor) All the gas vars, on the turf, are meant to be utilized for initializing a gas datum and setting its first gas values; the turf vars are never further modified at runtime; it is never directly used for calculations by the atmospherics system. |
pathing_pass_method | How pathing algorithm will check if this turf is passable by itself (not including content checks). By default it's just density check. WARNING: Currently to use a density shortcircuiting this does not support dense turfs with special allow through function |
real_layer | Set if the turf should appear on a different layer while in-game and map editing, otherwise use normal layer. |
transparent_floor | used to check if pipes should be visible under the turf or not |
Procs | |
AdjacentTurfs | Returns the adjacent turfs. Can check for density or cardinal directions only instead of all 8, or just dense turfs entirely. dense_only takes precedence over open_only. |
LinkBlockedWithAccess | For seeing if we can actually move between 2 given turfs while accounting for our access and the caller's pass_flags |
reachableAdjacentTurfs | Returns adjacent turfs to this turf that are reachable, in all cardinal directions |
Var Details
fixed_underlay
Icon-smoothing variable to map a diagonal wall corner with a fixed underlay.
oxygen
Properties for open tiles (/floor) All the gas vars, on the turf, are meant to be utilized for initializing a gas datum and setting its first gas values; the turf vars are never further modified at runtime; it is never directly used for calculations by the atmospherics system.
pathing_pass_method
How pathing algorithm will check if this turf is passable by itself (not including content checks). By default it's just density check. WARNING: Currently to use a density shortcircuiting this does not support dense turfs with special allow through function
real_layer
Set if the turf should appear on a different layer while in-game and map editing, otherwise use normal layer.
transparent_floor
used to check if pipes should be visible under the turf or not
Proc Details
AdjacentTurfs
Returns the adjacent turfs. Can check for density or cardinal directions only instead of all 8, or just dense turfs entirely. dense_only takes precedence over open_only.
LinkBlockedWithAccess
For seeing if we can actually move between 2 given turfs while accounting for our access and the caller's pass_flags
Assumes destinantion turf is non-dense - check and shortcircuit in code invoking this proc to avoid overhead.
Arguments:
- caller: The movable, if one exists, being used for mobility checks to see what tiles it can reach
- ID: An ID card that decides if we can gain access to doors that would otherwise block a turf
- simulated_only: Do we only worry about turfs with simulated atmos, most notably things that aren't space?
- no_id: When true, doors with public access will count as impassible
reachableAdjacentTurfs
Returns adjacent turfs to this turf that are reachable, in all cardinal directions
Arguments:
- caller: The movable, if one exists, being used for mobility checks to see what tiles it can reach
- ID: An ID card that decides if we can gain access to doors that would otherwise block a turf
- simulated_only: Do we only worry about turfs with simulated atmos, most notably things that aren't space?
- no_id: When true, doors with public access will count as impassible