roguelike-game/src/gamelog.rs

21 lines
476 B
Rust
Raw Normal View History

//! Game Log
//!
//! Where the exploits of the current game are recorded
mod builder;
mod logstore;
use ::rltk::RGB;
use ::serde::{Deserialize, Serialize};
pub use builder::*;
use logstore::*;
pub use logstore::{clear_log, clone_log, log_display, 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,
2021-11-05 14:32:14 -04:00
}