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_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. |
Procs | |
| New | Starts a template. |
| 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. |
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:
- zone_sources: The sprites to build it from, as dirt_zone_sources() returns them.
- directions: The directions to build, every one unless a template's reader needs only some.
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:
- TRUE: Every direction is built, or the template can't be (failed).
- FALSE: Directions are left.