Skip to content

Directory

James Lott edited this page Mar 10, 2018 · 5 revisions

[[TOC]]

Synopsis

Input

asset-pack-dir/
├── data
│   ├── a
│   ├── b
│   └── sub
│       ├── a
│       └── b
└── meta
    ├── a.json
    └── sub
        └── a.json

Output

project-dir/
├── a
├── b
└── sub
    ├── a
    └── b

Description

This asset pack format is implemented by mkproject.loader.directory.DirectoryLoader. The DirectoryLoader will read data from each file in the asset-pack-dir/data/ directory and register that data in the AssetPack using the path which the data was read from, relative to the asset-pack-dir/data/ directory (e.g., data read from asset-pack-dir/data/a will be registered with the path a, asset-pack-dir/data/sub/a with sub/a, etc.).

If there is a json file readable at the same relative path under the asset-pack-dir/meta/ directory, this file will be parsed and registered as the metadata for the path (e.g., the data from the json file asset-pack-dir/meta/a.json will be registered as the metadata for a, asset-pack-dir/meta/sub/a.json for sub/a, etc.).

Clone this wiki locally