api.module
README.md
flashlightKit.api
The Torch front door: local Torch = require("flashlightKit.api"). Story calls (flicker, fail, restore, setCharge, set, toggle, setStyle, give, swap), reads (charge, isOn, switchedOn, lightOf, spares, visibility, lights, beams, list), setQuality, events through on(name, fn): toggled, batteryLow, batteryDead, swapped, failed, flash, charged. Owner-authoritative: calls made on another peer are sent to the torch's owner. Also holds the light model every peer computes (levelOf).