/tg/ Station 13 - Modules - Types — Var Details - Proc Details

dirt_template_job

Builds a dirt template one direction at a time, in the reference generator's order (south, north, east, west), so SSdirt can spread the work over ticks. A body whose limb names a state its sheet lacks gets no template: the job fails on its first piece.

Vars

built_countHow many of them are built.
directionsThe directions it builds, in the order it builds them.
templateThe template being built.
zone_sourcesThe sprites it's built from, as dirt_zone_sources() returns them.

Procs

NewStarts a template.
builtReturns the template once every direction is built, or null while some are left or when it failed.
finishedCaches the template, or FALSE when it failed.
most_piecesOne piece a direction.
next_pieceBuilds the next direction's surface and silhouettes.

Var Details

built_count

How many of them are built.

directions

The directions it builds, in the order it builds them.

template

The template being built.

zone_sources

The sprites it's built from, as dirt_zone_sources() returns them.

Proc Details

New

Starts a template.

Arguments:

built

Returns the template once every direction is built, or null while some are left or when it failed.

finished

Caches the template, or FALSE when it failed.

most_pieces

One piece a direction.

next_piece

Builds the next direction's surface and silhouettes.

Returns: