summaryrefslogtreecommitdiff
path: root/src/controls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls.rs')
-rw-r--r--src/controls.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controls.rs b/src/controls.rs
index d9432a5..a27348d 100644
--- a/src/controls.rs
+++ b/src/controls.rs
@@ -1,7 +1,7 @@
use serde_json::Value;
-use super::pos::Pos;
+use crate::{PlayerId, Pos};
#[derive(Debug, Clone)]
pub enum Direction {
@@ -68,8 +68,8 @@ impl Control {
#[derive(Debug, Clone)]
pub enum Action {
- Join(String),
- Leave(String),
- Input(String, Control)
+ Join(PlayerId),
+ Leave(PlayerId),
+ Input(PlayerId, Control)
}