37 lines
1.1 KiB
Rust
37 lines
1.1 KiB
Rust
mod action;
|
|
mod archetype;
|
|
mod board;
|
|
mod builtin_scripts;
|
|
/// The 16 EGA/VGA named colors ([`colors::NAMED_COLORS`]), shared by scripts and the editor.
|
|
pub mod colors;
|
|
/// CP437 tile-index → character mapping ([`cp437::tile_to_char`]) for the default font.
|
|
pub mod cp437;
|
|
/// Procedural floor generators ([`floor::FloorGenerator`]).
|
|
pub mod floor;
|
|
/// Lighting & field-of-view for dark boards ([`fov::Lighting`]).
|
|
pub mod fov;
|
|
/// Core game types: [`board::Board`], [`glyph::Glyph`], [`archetype::Archetype`], etc.
|
|
pub mod game;
|
|
pub mod glyph;
|
|
mod layer;
|
|
/// Styled log messages ([`log::LogLine`]) for the in-game message feed.
|
|
pub mod log;
|
|
/// Map file loading and saving (`.toml` format).
|
|
pub mod map_file;
|
|
mod object_def;
|
|
/// Rhai scripting runtime for board objects ([`script::ScriptHost`]).
|
|
pub mod script;
|
|
mod utils;
|
|
/// World type: a named collection of boards in a single `.toml` file ([`world::World`], [`world::load`]).
|
|
pub mod world;
|
|
pub mod player;
|
|
pub mod keys;
|
|
pub use archetype::{Archetype, Builtin};
|
|
pub use board::Board;
|
|
pub use fov::{Lighting, SIGHT_RADIUS};
|
|
pub use utils::Direction;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
mod api;
|