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.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/game_server/src/group.rs b/game_server/src/group.rs
index 55e4fbf..6356a14 100644
--- a/game_server/src/group.rs
+++ b/game_server/src/group.rs
@@ -1,8 +1,14 @@
+use super::server::{UserId, GameClient};
+
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);
+ fn get_client(&self, client_id: UserId) -> Option<&GameClient>;
}