Skip to content

atl/sm/pipegraph

import "atl/sm/pipegraph"

Pipe networks between containers (sm.pipeGraph). requester is the shape asking.

func InputContainers(requester sm.Shape) []sm.Shape
func OutputContainers(requester sm.Shape) []sm.Shape

Containers piped into / out of the requester.

func MatchingPipedContainers(origin sm.Interactable) []sm.Container

Piped containers that match the origin's.

func ContainerToCollectTo(requester sm.Shape, items []sm.Item) sm.Shape

A container shape with room for all of items.

func ContainerToSpendFrom(requester sm.Shape, item sm.Uuid, quantity int) sm.Shape

A container shape holding quantity of item.

func ContainerPath(requester, target sm.Shape, direction *int) []sm.Shape

[client] The pipes between two shapes.

func RequestLightingOverride(requester, target sm.Shape, uvIndex int, glow float64)

[client] Overrides pipe glow and UV while items move through them.

func ReleaseLightingOverride(requester sm.Shape)

[client] Ends a lighting override.

func SetAutomatedTask(requester sm.Shape, recipe atl.Value, parallel *bool)

[server] Crafting while the body is unloaded: recipe is a recipe table.

func RemoveAutomatedTask(requester sm.Shape, item sm.Uuid)
func RemoveAutomatedTasks(requester sm.Shape)

[server] Removes one automated task, or all of them.

func SetParallelLimit(requester sm.Shape, amount int)

[server] How many automated tasks may run at once.

func SetInteractableCondition(requester sm.Shape, condition atl.Value)

[server] Sets the conditions an interactable must meet to craft (a condition table).

func InteractableConditionTicks(requester sm.Shape) atl.Value

[server] What's left of the interactable's conditions.