summaryrefslogtreecommitdiff
path: root/game_server/src/group.rs
blob: fcda12a309ac0103467bf0febb6c9adff0f79165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}