|
|
@ -8,7 +8,12 @@ use crate::world::*;
|
|
|
|
use crate::{try_option_send_error, try_send_error};
|
|
|
|
use crate::{try_option_send_error, try_send_error};
|
|
|
|
|
|
|
|
|
|
|
|
impl Command {
|
|
|
|
impl Command {
|
|
|
|
pub fn dispatch_move_room(command: &Command, _args: String, token: Token, db: &mut Db) -> SendQueue {
|
|
|
|
pub fn dispatch_move_room(
|
|
|
|
|
|
|
|
command: &Command,
|
|
|
|
|
|
|
|
_args: String,
|
|
|
|
|
|
|
|
token: Token,
|
|
|
|
|
|
|
|
db: &mut Db,
|
|
|
|
|
|
|
|
) -> SendQueue {
|
|
|
|
let mut send_queue = SendQueue::new();
|
|
|
|
let mut send_queue = SendQueue::new();
|
|
|
|
|
|
|
|
|
|
|
|
let direction: Direction = match command {
|
|
|
|
let direction: Direction = match command {
|
|
|
|