2024-01-17 09:34:24 +00:00
|
|
|
use crate::models::commands::{BuiltinCommand, AiCommand};
|
|
|
|
use crate::models::world::scenes::Stage;
|
|
|
|
|
|
|
|
pub fn check_builtin_command(stage: &Stage, cmd: &str) -> Option<BuiltinCommand> {
|
|
|
|
match cmd {
|
|
|
|
"look" => look_command(stage),
|
|
|
|
_ => None,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn look_command(_stage: &Stage) -> Option<BuiltinCommand> {
|
2024-01-30 11:03:32 +00:00
|
|
|
Some(BuiltinCommand::LookAtScene)
|
2024-01-17 09:34:24 +00:00
|
|
|
}
|