12 lines
211 B
Rust
12 lines
211 B
Rust
pub struct GameLog {
|
|
pub entries: Vec<String>,
|
|
}
|
|
|
|
impl GameLog {
|
|
pub fn new<S: ToString>(first_entry: S) -> Self {
|
|
GameLog {
|
|
entries: vec![first_entry.to_string()],
|
|
}
|
|
}
|
|
}
|