Log inGet started
Package

mission.module

README.md

mission

The card a mission begins with, and the one it ends with.

  local Mission = require("~.screens.mission")
  local tree = Mission.build(data, env)

data: { mode = "start" | "done" | "failed",
        kicker = string,                 -- start: the giver's name; done: "Done"; failed: "It did not come off"
        title, body,                     -- the mission's title; its brief, its closing line or its failing line
        about = string?,                 -- start: who the giver is
        rewardsLabel = string?, rewards = { { icon, text, color? } },
        actions = { { id, control, label } } }     -- callback ids "mission:<id>"; `control` names the input
env:  { frame, text, glyph }
Events: start: "mission:accept", "mission:later"; done: "mission:continue"; failed: "mission:retry",
"mission:walk".
The card is paper for a beginning and an ending, and takes the colour of what happened as one stroke of paint
across its head: saffron to begin, verdigris done, madder failed.

The interface is documented in the header of init.luau; this file repeats it for the asset browser.