Skip to main content

Crate ltk_mod_project

Crate ltk_mod_project 

Source

Re-exports§

pub use error::ModProjectError;
pub use error::SerializeError;
pub use import::ConfigRefusal;
pub use import::ImportError;
pub use import::ImportFormat;
pub use import::ImportProgress;
pub use import::ImportReporter;
pub use import::ImportStage;
pub use import::ImportTarget;
pub use import::NoConfig;
pub use import::ProjectImporter;
pub use import::ProjectPath;
pub use import::ProjectPaths;
pub use pack::IgnoreMode;
pub use pack::PackError;
pub use pack::PackFormat;
pub use pack::PackFormatReport;
pub use pack::PackOptions;
pub use pack::PackPlan;
pub use pack::PackProgress;
pub use pack::PackReport;
pub use pack::PackReporter;
pub use pack::PackStage;
pub use pack::PlannedFile;
pub use pack::PlannedHashtable;
pub use pack::PlannedLayer;
pub use pack::PlannedLicense;
pub use pack::ProjectPacker;

Modules§

error
Errors returned when loading and saving a mod project configuration.
game_data
Layer declaration loading and build-resource classification.
import
Importing a packaged mod as a mod project.
pack
Packing a mod project into an archive.

Structs§

Cancellation
Whether the caller has asked a long operation to stop.
ContentWalk
Iterator over the files beneath one directory of content/, skipping ignored files and never descending into ignored directories.
ContentWalkError
Failure to read a directory or entry during a ModIgnore::walk.
FileTransformer
Represents a file transformer that can be applied to files during the build process
ModIgnore
Gitignore-style filter over a mod project’s content/ directory.
ModIgnoreRule
The .modignore line responsible for a match, for diagnostics.
ModProject
Describes a mod project configuration file
ModProjectDistributor
The distributor site that hosts a mod, and the mod’s ID on that site.
ModProjectHashtable
One hashtables manifest entry in a mod project config.
ModProjectLayer
Represents a layer in a mod project

Enums§

ConfigFormat
A format a mod project configuration can be read from and written to.
ModIgnoreError
Failure to load a .modignore file.
ModIgnoreMatch
Which rule, if any, decided an entry.
ModMap
A map identifier, either a well-known map or a custom string.
ModProjectAuthor
ModProjectLicense
How a project declares its license terms.
ModTag
A mod tag, either a well-known category or a custom string.
PackageFormat
A format a mod project can be packed into for distribution.
WellKnownMap
Well-known game maps.
WellKnownModTag
Well-known mod tags for common mod categories.

Constants§

CONTENT_DIR_NAME
The directory every layer’s content sits under, in the project root.
HASHES_DIR_NAME
The directory a project’s declared hashtable files sit under, in the project root.
LICENSE_FILE_NAMES
License file names recognized at a project root, in precedence order.
MODIGNORE_FILE_NAME
The ignore files’ name: at the project root and in any directory under content/.

Functions§

canonical_license_file_name
The canonical spelling of a recognized license file name, if it is one.
find_license_file
Find the project’s license file, matched case-insensitively.

Type Aliases§

FileTransformerOptions