provide new state

master
rasul 5 years ago
parent a9cc95ef6c
commit 85d1eeff70

@ -3,10 +3,11 @@ use mio::Token;
use crate::command::Command;
use crate::database::Db;
use crate::queue::SendQueue;
use crate::state::State;
impl Command {
/// Quit the game
pub fn dispatch_quit(&self, _: String, token: Token, _: &mut Db) -> SendQueue {
(token, "Goodbye\n\n").into()
SendQueue(vec![(token, "Goodbye\n\n".into(), false, Some(State::Quit))].into())
}
}

Loading…
Cancel
Save