import
Bringing a file into the project being edited: a .glb or .gltf model, an .aseprite sprite, a .tmx or .ldtk level. The same importers balaur import runs.
2 functions, 0 constants. Scripts reach it as import::.
Functions
Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.
| function | acts on | what it does |
|---|---|---|
file(string) -> any | — | Import one file into the edited project. Answers { files, scene, note }: the project-relative paths written, the scene to instantiate when there is one, and a line for the log. Answers { error } when the import failed. |
handles(string) -> any | — | Whether an importer claims this file, by extension. |