summaryrefslogtreecommitdiff
path: root/game_server/src/main.rs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-11 06:26:26 +0200
committernatrixaeria <janng@gmx.de>2019-05-11 06:26:26 +0200
commit73eb78e3ac5eb7d382c1aca98da84cd866d54570 (patch)
tree92fb23c91eb812adfc6769e139537758d5002b4e /game_server/src/main.rs
parente2d83e09f8af95c82385967f61e2ec8342a4b2c9 (diff)
Create a fundamental project structure
Diffstat (limited to 'game_server/src/main.rs')
-rw-r--r--game_server/src/main.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/game_server/src/main.rs b/game_server/src/main.rs
index 685c633..7e08b46 100644
--- a/game_server/src/main.rs
+++ b/game_server/src/main.rs
@@ -1,11 +1,22 @@
-mod lobby;
mod group;
+mod lobby;
#[macro_use] extern crate log;
use pretty_env_logger;
+use group::Group;
+use lobby::Lobby;
+
fn main() {
pretty_env_logger::init();
- trace!("test info");
+ let mut lobby = Lobby::new();
+ lobby.add_group(Group::new(0, "Test".to_string()));
+ lobby.add_group(Group::new(1, "Very Serious".to_string()));
+
+ for group in lobby.iter() {
+ group.run()
+ }
+
+ loop {}
}