Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/parallax_controller

Vars

outermost_movableThe outermost atom/movable in the client's mob's .loc chain.
ownerThe client that this parallax controller belongs to.
parallax_layersThe various parallax layers displayed on the client's screen that will require to be updated when the client's mob moves.
parallax_render_sourcesAn associative list of the parallax render sources and their corresponding layers displayed on the client's screen.
previous_areaThe area that the outermost movable was in when update_area_parallax_layers() was last called.
previous_turfThe turf that the client's eye was centred upon when update_parallax_layers() was last called.
previous_z_levelThe z-level that the outermost movable was in when update_z_level_parallax_layers() was last called.
render_source_groupsA list of all the render source groups that the client is currently a member of.

Procs

add_parallax_layerCreates a new parallax layer for every provided parallax layer render source.
recalculate_parallax_layerCreates a new parallax layer for every provided parallax layer render source.
remove_parallax_layerRemoves the parallax layers corresponding to the provided parallax layer render sources.
update_area_parallax_layersUpdates the parallax render sources and layers displayed to a client by an area.
update_parallax_layersUpdates the position of the parallax layer relative to the client's eye, taking into account the distance moved and the parallax value.
update_z_level_parallax_layersUpdates the parallax render sources and layers displayed to a client by a z-level.

Var Details

outermost_movable

The outermost atom/movable in the client's mob's .loc chain.

owner

The client that this parallax controller belongs to.

parallax_layers

The various parallax layers displayed on the client's screen that will require to be updated when the client's mob moves.

parallax_render_sources

An associative list of the parallax render sources and their corresponding layers displayed on the client's screen.

previous_area

The area that the outermost movable was in when update_area_parallax_layers() was last called.

previous_turf

The turf that the client's eye was centred upon when update_parallax_layers() was last called.

previous_z_level

The z-level that the outermost movable was in when update_z_level_parallax_layers() was last called.

render_source_groups

A list of all the render source groups that the client is currently a member of.

Proc Details

add_parallax_layer

Creates a new parallax layer for every provided parallax layer render source.

recalculate_parallax_layer

Creates a new parallax layer for every provided parallax layer render source.

remove_parallax_layer

Removes the parallax layers corresponding to the provided parallax layer render sources.

update_area_parallax_layers

Updates the parallax render sources and layers displayed to a client by an area.

update_parallax_layers

Updates the position of the parallax layer relative to the client's eye, taking into account the distance moved and the parallax value.

update_z_level_parallax_layers

Updates the parallax render sources and layers displayed to a client by a z-level.