byond - Modules - TypesVar Details - Proc Details

Shuttle

Vars

assoc_mobileNow it's only for ID generation in /obj/docking_port/mobile/register()
assoc_stationaryNow it's only for ID generation in /obj/docking_port/stationary/register()
existing_shuttleThe existing shuttle associated with the selected shuttle map_template.
loading_shuttleAre we currently in the process of loading a shuttle? Useful to ensure we don't load more than one at once, to avoid weird inconsistencies and possible runtimes.
lockdownDisallow transit after nuke goes off
mobileA list of all the mobile docking ports.
preview_reservationThe turf reservation for the current previewed shuttle.
preview_shuttleThe docking port associated to the preview_template that's currently being previewed.
preview_templateThe shuttle map_template of the shuttle we want to preview.
selectedThe currently selected shuttle map_template in the shuttle manipulator's template viewer.
stationaryA list of all the stationary docking ports.
transitA list of all the transit docking ports.
transit_request_failuresAn associative list of the mobile docking ports that have failed a transit request, with the amount of times they've actually failed that transit request, up to MAX_TRANSIT_REQUEST_RETRIES
transit_requestersA list of all the mobile docking ports currently requesting a spot in hyperspace.
transit_utilizedHow many turfs our shuttles are currently utilizing in reservation space

Procs

action_loadLoads a shuttle template and sends it to a given destination port, optionally replacing the existing shuttle
get_template_shuttleTries to get a shuttle based on its original template id (rather than one that may have an additional identifier)
load_templateLoads a shuttle template into the transit Z level, usually referred to elsewhere in the code as a shuttle preview. Does not register the shuttle so it can't be used yet, that's handled in action_load()
moveShuttleMoves a shuttle to a new location
transit_space_clearingGotta manage our space brother
unload_previewRemoves the preview_shuttle from the transit Z-level

Var Details

assoc_mobile

Now it's only for ID generation in /obj/docking_port/mobile/register()

assoc_stationary

Now it's only for ID generation in /obj/docking_port/stationary/register()

existing_shuttle

The existing shuttle associated with the selected shuttle map_template.

loading_shuttle

Are we currently in the process of loading a shuttle? Useful to ensure we don't load more than one at once, to avoid weird inconsistencies and possible runtimes.

lockdown

Disallow transit after nuke goes off

mobile

A list of all the mobile docking ports.

preview_reservation

The turf reservation for the current previewed shuttle.

preview_shuttle

The docking port associated to the preview_template that's currently being previewed.

preview_template

The shuttle map_template of the shuttle we want to preview.

selected

The currently selected shuttle map_template in the shuttle manipulator's template viewer.

stationary

A list of all the stationary docking ports.

transit

A list of all the transit docking ports.

transit_request_failures

An associative list of the mobile docking ports that have failed a transit request, with the amount of times they've actually failed that transit request, up to MAX_TRANSIT_REQUEST_RETRIES

transit_requesters

A list of all the mobile docking ports currently requesting a spot in hyperspace.

transit_utilized

How many turfs our shuttles are currently utilizing in reservation space

Proc Details

action_load

Loads a shuttle template and sends it to a given destination port, optionally replacing the existing shuttle

Arguments:

get_template_shuttle

Tries to get a shuttle based on its original template id (rather than one that may have an additional identifier)

load_template

Loads a shuttle template into the transit Z level, usually referred to elsewhere in the code as a shuttle preview. Does not register the shuttle so it can't be used yet, that's handled in action_load()

Arguments:

moveShuttle

Moves a shuttle to a new location

Arguments:

transit_space_clearing

Gotta manage our space brother

unload_preview

Removes the preview_shuttle from the transit Z-level