Skip to main content

Module check

Module check 

Source
Expand description

check [--baked]: the game loads all its content through every validator it has, and the answer lists every error found, each with its file, line and message. With --baked, the game’s sources are baked into a pack too, and every asset read from the pack must equal the one read from its source (bake::check_baked). Once the content loads without errors, the game’s text is checked against its font atlas (GameTools::font_atlas, shuyi_assets::font::undrawn): a character the atlas can’t draw is an error. It passes when there are no errors.

check --target <id> checks instead that the game fits target id, or every target its shuyi.ron lists with --target all (super::target). The display and who the game is (shuyi.ron’s app) need only the project file; the controls, and a one-bit target’s patterns, need the game’s tools too, and without them the answer says they weren’t checked. It passes when no target has an error; warnings don’t fail it.

Structs§

CheckInput
What check checks: everything the game loads (with baked, its pack too), or with target, how the game fits a target.
CheckOutput
What check found.

Functions§

check
check: every error of game’s content, and with baked, every way its pack differs from its sources. A target is checked by targets.
parse_args
check’s arguments (--json taken out): none, --baked, or --target <id>.
targets
check --target: how the game of config (the project at root) fits the targets input asks for; its controls and a one-bit target’s patterns too with its tools, game.
text
What check found, for people.
usage
check’s usage, with command as the tool’s name.