blob: 6356a14de6ce1365755a576e951882f7c82167a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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(&mut self);
fn add_client(&mut self, id: UserId, client: GameClient);
fn get_client(&self, client_id: UserId) -> Option<&GameClient>;
}
|