2022-02-01 09:21:06 -05:00
|
|
|
//! Game Log
|
|
|
|
//!
|
|
|
|
//! Where the exploits of the current game are recorded
|
|
|
|
mod builder;
|
2022-02-01 11:59:44 -05:00
|
|
|
mod events;
|
2022-02-01 09:21:06 -05:00
|
|
|
mod logstore;
|
2021-11-19 19:52:15 -05:00
|
|
|
|
2022-02-01 09:21:06 -05:00
|
|
|
use ::rltk::RGB;
|
2022-02-01 11:20:41 -05:00
|
|
|
use ::serde::{Deserialize, Serialize};
|
2022-02-01 09:21:06 -05:00
|
|
|
pub use builder::*;
|
2022-02-01 11:59:44 -05:00
|
|
|
pub use events::*;
|
2022-02-01 09:21:06 -05:00
|
|
|
use logstore::*;
|
2022-02-02 09:34:20 -05:00
|
|
|
pub use logstore::{clear_log, clone_log, print_log, restore_log};
|
2021-11-18 15:25:29 -05:00
|
|
|
|
2022-02-01 09:21:06 -05:00
|
|
|
/// A section of colored text for the game log
|
2022-02-01 11:20:41 -05:00
|
|
|
#[derive(Serialize, Deserialize, Clone)]
|
2022-02-01 09:21:06 -05:00
|
|
|
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
|
|
|
}
|