fastfov and telepathy
currently no way to *gain* telepathy, but it works
This commit is contained in:
parent
58ab2e9aa5
commit
ec9127573c
12 changed files with 126 additions and 45 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use super::LogFragment;
|
||||
use super::{events, LogFragment, Logger};
|
||||
use rltk::prelude::*;
|
||||
use std::sync::Mutex;
|
||||
|
||||
|
|
@ -37,6 +37,21 @@ pub fn print_log(console: &mut Box<dyn Console>, pos: Point, descending: bool, l
|
|||
});
|
||||
}
|
||||
|
||||
pub fn setup_log() {
|
||||
clear_log();
|
||||
events::clear_events();
|
||||
for _ in 0..5 {
|
||||
Logger::new().log();
|
||||
}
|
||||
Logger::new()
|
||||
.append("Welcome!")
|
||||
.colour(rltk::CYAN)
|
||||
.append("(")
|
||||
.append("pretend i wrote a paragraph explaining why you're here")
|
||||
.append(")")
|
||||
.log();
|
||||
}
|
||||
|
||||
pub fn clone_log() -> Vec<Vec<crate::gamelog::LogFragment>> {
|
||||
return LOG.lock().unwrap().clone();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ mod builder;
|
|||
pub use builder::*;
|
||||
mod logstore;
|
||||
use logstore::*;
|
||||
pub use logstore::{clear_log, clone_log, print_log, restore_log};
|
||||
pub use logstore::{clear_log, clone_log, print_log, restore_log, setup_log};
|
||||
mod events;
|
||||
pub use events::*;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue