summaryrefslogtreecommitdiff
path: root/game_server/src/group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'game_server/src/group.rs')
-rw-r--r--game_server/src/group.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/game_server/src/group.rs b/game_server/src/group.rs
index 55e4fbf..74a04f7 100644
--- a/game_server/src/group.rs
+++ b/game_server/src/group.rs
@@ -1,8 +1,13 @@
+use crate::server::{UserId, GameClient, GameServerError};
+
pub type GroupId = u32;
pub trait Group {
fn id(&self) -> GroupId;
+ fn group_type(&self) -> String;
fn name(&self) -> String;
- fn run(&self);
+ fn run(&mut self);
+
+ fn add_client(&mut self, id: UserId, client: GameClient) -> Result<(), GameServerError>;
}