Log inGet started
World

Red Dot Rising

Branchmain
Branchesmain
Commit3b5552605d

README.md

game.tower.api

The handle on the tower's mechanisms from outside the Tower component.

local Api = require("game.tower.api")

Api.readout()            -- what every mechanism currently reads
Api.testWeight("f1_a", 1)-- stand a weight on a plate without a cat
Api.clearTestWeights()
Api.turnMirror()         -- one 45 degree step of the Library mirror
Api.run()                -- the night's live progress
Api.resetRun()           -- put that progress back to its first minute

Plate ids are f1_a, f1_b, f2 and f3_heavy (Api.PLATE_IDS). A plate adds a test weight to the weight of the cats actually standing on it, so a mechanism can be held, released and held again from one call.

Everything lives in modules.state(), so a hot reload of the component or of this file keeps the night going and keeps what a test set.