productionKit.package
README.md
view (productionKit)
What one machine sees of the works: local View = require("productionKit.view"). Every machine keeps a View of the town and building records it has read from the world's shared runtime data and when each arrived. View.apply takes a record as it arrives (from the store's change feed, a poll, or the works on that very machine) and returns what changed as events (made, status, jobDone, stockChanged); View.poll reads everything at once (a late joiner's first look); View.building moves a working building's progress on smoothly from when its record arrived, so every machine shows the same bar without a write per frame. Pure Luau with no engine state, so the tests run several machines side by side; productionKit.production keeps this machine's one.