roguelike-game/src/gamelog.rs
2022-02-03 15:16:41 -05:00

23 lines
512 B
Rust

//! Game Log
//!
//! Where the exploits of the current game are recorded
mod builder;
mod events;
mod logstore;
use ::rltk::prelude::*;
use ::serde::{Deserialize, Serialize};
pub use builder::*;
pub use events::*;
use logstore::*;
pub use logstore::{clear_log, clone_log, print_log, restore_log};
/// A section of colored text for the game log
#[derive(Serialize, Deserialize, Clone)]
pub struct LogFragment {
/// The color of the text
pub color: RGB,
/// The text fragment
pub text: String,
}