/datum/z_pillar
Grouping datum that manages transparency for a block of space Setup to ease debugging, and to make add/remove operations cheaper
Vars | |
drawing_object | Assoc list of turfs using z holders in the form displayed turf -> z holder |
---|---|
turf_sources | Assoc list in the form displayed turf -> list of sources |
Procs | |
display_turf | Displays a turf from the z level below us on our level |
hide_turf | Basically, if we used to be under a non transparent turf, but are no longer in that position Then we add to the transparent turf we're now under, and nuke the old object Hides an existing turf from our vis_contents, or the vis_contents of the source if applicable |
parent_cleared | Called when a transparent turf is cleared. We wait a tick, then check to see what Kind of turf replaced our former holder, and resetup our visuals as desired We do not need to do this for non transparent holders, because they will have their abstract object cleared When a transparent holder comes back. |
refresh_orphan | Runs the actual refresh of some formerly orphaned via vis_loc deletiong turf We'll only reup if we either have no souece, or if the source is a transparent turf |
Var Details
drawing_object
Assoc list of turfs using z holders in the form displayed turf -> z holder
turf_sources
Assoc list in the form displayed turf -> list of sources
Proc Details
display_turf
Displays a turf from the z level below us on our level
hide_turf
Basically, if we used to be under a non transparent turf, but are no longer in that position Then we add to the transparent turf we're now under, and nuke the old object Hides an existing turf from our vis_contents, or the vis_contents of the source if applicable
parent_cleared
Called when a transparent turf is cleared. We wait a tick, then check to see what Kind of turf replaced our former holder, and resetup our visuals as desired We do not need to do this for non transparent holders, because they will have their abstract object cleared When a transparent holder comes back.
refresh_orphan
Runs the actual refresh of some formerly orphaned via vis_loc deletiong turf We'll only reup if we either have no souece, or if the source is a transparent turf