blob: 55969a4bb579adf3cf582186d75c6429f1fc2a0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#![feature(random)]
use anyhow::Result;
use client::Client;
use std::sync::Arc;
use window::WindowState;
use winit::event_loop::EventLoop;
pub mod client;
pub mod renderer;
pub mod skin_manager;
pub mod window;
fn main() -> Result<()> {
env_logger::init_from_env("LOG");
let client = Arc::new(Client::new().unwrap());
let evloop = EventLoop::new()?;
evloop.run_app(&mut WindowState::new(client))?;
Ok(())
}
|