13 lines
258 B
Rust
13 lines
258 B
Rust
pub struct GameLog {
|
|
pub entries: Vec<String>,
|
|
}
|
|
|
|
impl GameLog {
|
|
pub fn new<S: ToString>(first_entry: S) -> Self {
|
|
let mut entries: Vec<String> = Vec::new();
|
|
entries.push(first_entry.to_string());
|
|
|
|
GameLog { entries }
|
|
}
|
|
}
|