This commit is contained in:
nora 2023-04-17 19:51:02 +02:00
parent 98dd54f1f2
commit 62107a20d8
21 changed files with 138 additions and 459 deletions

View file

@ -1,16 +1,11 @@
use crate::math::WorldPos;
/// A command that can change application or game state
pub enum Cmd {
pub(crate) enum Cmd {
/// Quit the application
QuitApp,
ToggleFreecam,
TeleportPlayer {
pos: WorldPos,
relative: bool,
},
TeleportPlayer {},
TeleportPlayerSpawn,
GiveItemByName(String),
GiveItemByName(),
}
pub type CmdVec = Vec<Cmd>;
pub(crate) type CmdVec = Vec<Cmd>;