Initialize Minecraft text generator project with basic structure and CLI functionality
This commit is contained in:
18
crates/lib/src/lib.rs
Normal file
18
crates/lib/src/lib.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
mod engine;
|
||||
mod error;
|
||||
mod font;
|
||||
mod fonts;
|
||||
mod grid;
|
||||
mod models;
|
||||
|
||||
pub use engine::{GenerationOptions, TextBuilder};
|
||||
pub use error::{FontError, VoxelError};
|
||||
pub use font::FontProvider;
|
||||
pub use fonts::ttf_font::TtfFont;
|
||||
pub use grid::VoxelGrid;
|
||||
pub use models::VoxelType;
|
||||
|
||||
pub trait StructureExporter {
|
||||
fn export(&self, grid: &VoxelGrid) -> anyhow::Result<Vec<u8>>;
|
||||
fn file_extension(&self) -> &'static str;
|
||||
}
|
||||
Reference in New Issue
Block a user