You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
434 B
35 lines
434 B
mod client;
|
|
mod command;
|
|
mod config;
|
|
mod database;
|
|
mod game;
|
|
mod id;
|
|
mod logger;
|
|
#[macro_use]
|
|
mod macros;
|
|
mod player;
|
|
mod queue;
|
|
mod result;
|
|
mod server;
|
|
mod state;
|
|
mod world;
|
|
|
|
use log::*;
|
|
|
|
use crate::game::Game;
|
|
use crate::result::RudeResult;
|
|
|
|
fn main() -> RudeResult<()> {
|
|
let mut game = Game::new()?;
|
|
|
|
loop {
|
|
match game.iter_once() {
|
|
Ok(true) => continue,
|
|
Ok(false) => break,
|
|
Err(e) => return Err(e),
|
|
}
|
|
}
|
|
|
|
Ok(())
|
|
}
|