Skip to main content

Module import

Module import 

Source
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§

ImportInput
What import reads.
ImportOutput
What import found.
Imported
The file read as one kind.
Importers
The kinds import tries 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, under root, read by importers.
parse_args
Reads import’s arguments (not --json).
text
What import found, for people.