Expand description
import <file> [--kind K] [--print]: a file read through the format
registry (ADR-0019) as every kind whose formats know it, with a short
summary of what was read, the asset itself with --print, or every
error with its file and line.
The kinds tried are Importers: the engine’s standard ones
(Importers::standard) and those the game adds with its own formats
(GameTools::importers). The importers
of other tools’ files (Tiled, LDtk, Aseprite) are formats of the
registry too, when tickets 1123 and 1124 add them; import needs no
change for them.
Structs§
- Import
Input - What
importreads. - Import
Output - What
importfound. - Imported
- The file read as one kind.
- Importers
- The kinds
importtries and the formats it reads them with.
Constants§
- MAX_
FOLDER_ BYTES - The most bytes of the file’s folder read for the files it names.
- MAX_
FOLDER_ FILES - The most files of the file’s folder read for the files it names.
Functions§
- import
import:input’s file, underroot, read byimporters.- parse_
args - Reads
import’s arguments (not--json). - text
- What
importfound, for people.