castlecore/lib.rs
1//! # CastleCore
2//!
3//! Core Engine for development (Altenstein and same projects.)
4//! Will pack with map (and same) editor base on CastleCore.
5
6// Public constants
7pub(crate) const CC_VER: &str = "v0.0.12";
8
9// Heavy lines for write borders
10pub(crate) const LU_CORNER: char = '┏';
11pub(crate) const LD_CORNER: char = '┗';
12pub(crate) const RU_CORNER: char = '┓';
13pub(crate) const RD_CORNER: char = '┛';
14pub(crate) const UD_LINE: char = '━';
15pub(crate) const LR_LINE: char = '┃';
16pub(crate) const UD_T: char = '┳';
17pub(crate) const DU_T: char = '┻';
18pub(crate) const LR_T: char = '┣';
19pub(crate) const RL_T: char = '┫';
20pub(crate) const CROSS: char = '╋';
21
22// Double pack: ║ ═ ╔ ╗ ╚ ╝ ╠ ╣ ╦ ╩ ╬
23
24/// A temporary module for debugging functions.
25pub mod functions;
26/// A module containing all the functions related to the borders (temporary description)
27pub mod window;
28/// A module containing all the functions related to the screen (temporary description)
29pub mod screen;
30/// A module containing all the functions related to the render (temporary description)
31pub mod render;
32/// A module containing all the core functions (temporary description)
33pub mod core;
34
35/// Return current CastleCore version
36pub fn cc_ver() -> &'static str {
37 &CC_VER
38}