2026-06-15 23:35:18 -05:00
|
|
|
mod action;
|
|
|
|
|
mod archetype;
|
|
|
|
|
mod board;
|
2026-06-16 14:34:42 -05:00
|
|
|
mod builtin_scripts;
|
2026-06-20 16:21:04 -05:00
|
|
|
/// The 16 EGA/VGA named colors ([`colors::NAMED_COLORS`]), shared by scripts and the editor.
|
|
|
|
|
pub mod colors;
|
2026-06-20 17:53:47 -05:00
|
|
|
/// CP437 tile-index → character mapping ([`cp437::tile_to_char`]) for the default font.
|
|
|
|
|
pub mod cp437;
|
2026-06-15 23:35:18 -05:00
|
|
|
/// Procedural floor generators ([`floor::FloorGenerator`]).
|
2026-06-06 18:49:45 -05:00
|
|
|
pub mod floor;
|
2026-06-07 00:19:53 -05:00
|
|
|
/// Core game types: [`board::Board`], [`glyph::Glyph`], [`archetype::Archetype`], etc.
|
2026-05-30 20:20:09 -05:00
|
|
|
pub mod game;
|
2026-06-15 23:35:18 -05:00
|
|
|
pub mod glyph;
|
|
|
|
|
mod layer;
|
2026-06-03 22:46:54 -05:00
|
|
|
/// Styled log messages ([`log::LogLine`]) for the in-game message feed.
|
|
|
|
|
pub mod log;
|
2026-05-30 20:20:09 -05:00
|
|
|
/// Map file loading and saving (`.toml` format).
|
|
|
|
|
pub mod map_file;
|
2026-06-15 23:35:18 -05:00
|
|
|
mod object_def;
|
2026-06-04 20:11:55 -05:00
|
|
|
/// Rhai scripting runtime for board objects ([`script::ScriptHost`]).
|
|
|
|
|
pub mod script;
|
2026-06-07 00:19:53 -05:00
|
|
|
mod utils;
|
2026-06-15 23:35:18 -05:00
|
|
|
/// World type: a named collection of boards in a single `.toml` file ([`world::World`], [`world::load`]).
|
|
|
|
|
pub mod world;
|
2026-06-25 00:04:42 -05:00
|
|
|
pub mod player;
|
|
|
|
|
pub mod keys;
|
2026-06-07 00:19:53 -05:00
|
|
|
|
2026-06-23 01:08:01 -05:00
|
|
|
pub use archetype::{Archetype, Builtin};
|
2026-06-07 00:46:38 -05:00
|
|
|
pub use board::Board;
|
2026-06-08 22:15:44 -05:00
|
|
|
pub use utils::Direction;
|
2026-06-07 00:46:38 -05:00
|
|
|
|
|
|
|
|
#[cfg(test)]
|
2026-06-15 23:35:18 -05:00
|
|
|
mod tests;
|